diff --git a/cmd/server/search.go b/cmd/server/search.go index 1260d9f3..aa73c12c 100644 --- a/cmd/server/search.go +++ b/cmd/server/search.go @@ -349,7 +349,7 @@ func bestPairsJaroWinkler(searchTokens []string, indexed string) float64 { //unmatched portion, then scale down the final score. matchedIndexLength := 0 for i, str := range indexedTokens { - if matchedIndexTokens[i] == true { + if matchedIndexTokens[i] { matchedIndexLength += len(str) } }