Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 65bf211

Browse files
committed
fix(matchers): incorrect logical op
1 parent 20f59ed commit 65bf211

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/matchers/matchers.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ import (
88
)
99

1010
func IsAny(substr string, s string) bool {
11-
if strings.Index(s, substr) > 0 {
12-
return false
13-
}
14-
15-
return true
11+
return strings.Index(s, substr) > 0
1612
}
1713

1814
func IsMatch(pattern string, s string) bool {

0 commit comments

Comments
 (0)