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

Function toBool

lint/rule/rule.go:144–150  ·  view source on GitHub ↗
(arg interface{})

Source from the content-addressed store, hash-verified

142}
143
144func toBool(arg interface{}) (bool, error) {
145 boolVal, ok := arg.(bool)
146 if !ok {
147 return false, fmt.Errorf("expects bool value, but got %#v", arg)
148 }
149 return boolVal, nil
150}
151
152func toInt(arg interface{}) (int, error) {
153 intVal, ok := arg.(int)

Callers 1

setBoolArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected