MCPcopy Index your code
hub / github.com/1Password/for-open-source / HasError

Method HasError

script/validator.go:48–55  ·  view source on GitHub ↗
(section string)

Source from the content-addressed store, hash-verified

46}
47
48func (v *Validator) HasError(section string) bool {
49 for _, err := range v.Errors {
50 if err.Section == section {
51 return true
52 }
53 }
54 return false
55}
56
57func When(condition bool, callback ValidatorCallback) ValidatorCallback {
58 if condition {

Callers 2

intSectionMethod · 0.80
boolSectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected