Skip to content

Commit

Permalink
Remove some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
comigor committed Dec 23, 2019
1 parent b39f20b commit c02852c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/fuzzy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,26 +146,21 @@ class Fuzzy<T> {

_log('\nPattern: "${tokenSearcher.pattern}"');

// let tokenScores = []
var hasMatchInText = false;

for (var j = 0; j < words.length; j += 1) {
final word = words[j];
final tokenSearchResult = tokenSearcher.search(word);
// final obj = {};
if (tokenSearchResult.isMatch) {
// obj[word] = tokenSearchResult.score;
exists = true;
hasMatchInText = true;
scores.add(tokenSearchResult.score);
} else {
// obj[word] = 1;
if (options.matchAllTokens) {
scores.add(1);
}
}
_log('Token: "${word}", score: ${tokenSearchResult.score}');
// tokenScores.push(obj)
}

if (hasMatchInText) {
Expand Down

0 comments on commit c02852c

Please sign in to comment.