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

Function setStringArrArg

lint/rule/rule.go:135–142  ·  view source on GitHub ↗
(retVal *[]string, arg interface{})

Source from the content-addressed store, hash-verified

133}
134
135func setStringArrArg(retVal *[]string, arg interface{}) error {
136 arrVal, err := toStringArr(arg)
137 if err != nil {
138 return err
139 }
140 *retVal = arrVal
141 return nil
142}
143
144func toBool(arg interface{}) (bool, error) {
145 boolVal, ok := arg.(bool)

Callers 4

ApplyMethod · 0.85
processParamFunction · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85

Calls 1

toStringArrFunction · 0.85

Tested by

no test coverage detected