Skip to content

Commit

Permalink
More linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdaffurn committed Dec 12, 2023
1 parent b99f1e3 commit ddb46e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit ddb46e7

Please sign in to comment.