diff --git a/pkg/matchers/matchers.go b/pkg/matchers/matchers.go index 35d3a1af..1c751d92 100644 --- a/pkg/matchers/matchers.go +++ b/pkg/matchers/matchers.go @@ -8,11 +8,7 @@ import ( ) func IsAny(substr string, s string) bool { - if strings.Index(s, substr) > 0 { - return false - } - - return true + return strings.Index(s, substr) > 0 } func IsMatch(pattern string, s string) bool {