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

Commit

Permalink
fix(matchers): incorrect logical op
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Dec 3, 2022
1 parent 20f59ed commit 65bf211
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/matchers/matchers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 65bf211

Please sign in to comment.