From 1cc5652d7e6e819f9274c45ebe0ad0637dac867f Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Thu, 25 Mar 2021 06:04:26 +0700 Subject: [PATCH] :rotating_light: Fix gosimple linter --- pkg/matchers/fuzz.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/matchers/fuzz.go b/pkg/matchers/fuzz.go index 527a2caa..b4038365 100644 --- a/pkg/matchers/fuzz.go +++ b/pkg/matchers/fuzz.go @@ -4,9 +4,6 @@ import "github.com/sahilm/fuzzy" func IsMatchFuzz(pattern string, s []string) bool { matches := fuzzy.Find(pattern, s) - if len(matches) > 0 { - return true - } - return false + return len(matches) > 0 }