MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / setBoolArg

Function setBoolArg

lint/rule/rule.go:108–115  ·  view source on GitHub ↗
(retVal *bool, arg interface{})

Source from the content-addressed store, hash-verified

106}
107
108func setBoolArg(retVal *bool, arg interface{}) error {
109 boolVal, err := toBool(arg)
110 if err != nil {
111 return err
112 }
113 *retVal = boolVal
114 return nil
115}
116
117func setIntArg(retVal *int, arg interface{}) error {
118 intVal, err := toInt(arg)

Callers 1

ApplyMethod · 0.85

Calls 1

toBoolFunction · 0.85

Tested by

no test coverage detected