Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdaffurn committed Dec 12, 2023
1 parent 19bae92 commit 336b96c
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 @@ -330,7 +330,7 @@ func bestPairsJaroWinkler(searchTokens []string, indexed string) float64 {
totalWeightedScores := 0.0
for _, score := range scores {
//If neither the search token nor index token have been matched so far
if matchedSearchTokens[score.searchTokenIdx] == false && matchedIndexTokens[score.indexTokenIdx] == false {
if !matchedSearchTokens[score.searchTokenIdx] && !matchedIndexTokens[score.indexTokenIdx] {
//Weight the importance of this word score by its character length
searchToken := searchTokens[score.searchTokenIdx]
indexToken := indexedTokens[score.indexTokenIdx]
Expand Down

0 comments on commit 336b96c

Please sign in to comment.