Remove weird JS condition

This commit is contained in:
Guillaume Gomez 2022-06-18 16:11:12 +02:00
parent 3a8b0144c8
commit 5fef77d30e
1 changed files with 1 additions and 4 deletions

View File

@ -1333,10 +1333,7 @@ function initSearch(rawSearchIndex) {
if (searchWord.indexOf(elem.pathLast) > -1 ||
row.normalizedName.indexOf(elem.pathLast) > -1
) {
// filter type: ... queries
if (!results_others[fullId] !== undefined) {
index = row.normalizedName.indexOf(elem.pathLast);
}
index = row.normalizedName.indexOf(elem.pathLast);
}
lev = levenshtein(searchWord, elem.pathLast);
if (lev > 0 && elem.pathLast.length > 2 && searchWord.indexOf(elem.pathLast) > -1) {