From 65bf21195b5799748d50a9836a861452899bd228 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Sun, 4 Dec 2022 03:35:37 +0700 Subject: [PATCH] fix(matchers): incorrect logical op --- pkg/matchers/matchers.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 {