We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 898ffc4 commit 40e17f2Copy full SHA for 40e17f2
rule/enum.go
@@ -86,7 +86,7 @@ func (r *TypeEnumRule) Apply(arg interface{}, flags map[string]interface{}) erro
86
87
func search(arr []string, toFind string) bool {
88
ind := sort.Search(len(arr), func(i int) bool {
89
- return toFind <= arr[i]
+ return arr[i] >= toFind
90
})
91
return ind < len(arr) && arr[ind] == toFind
92
}
0 commit comments