Skip to content

Commit 5fef77d

Browse files
Remove weird JS condition
1 parent 3a8b014 commit 5fef77d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustdoc/html/static/js/search.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1333,10 +1333,7 @@ function initSearch(rawSearchIndex) {
13331333
if (searchWord.indexOf(elem.pathLast) > -1 ||
13341334
row.normalizedName.indexOf(elem.pathLast) > -1
13351335
) {
1336-
// filter type: ... queries
1337-
if (!results_others[fullId] !== undefined) {
1338-
index = row.normalizedName.indexOf(elem.pathLast);
1339-
}
1336+
index = row.normalizedName.indexOf(elem.pathLast);
13401337
}
13411338
lev = levenshtein(searchWord, elem.pathLast);
13421339
if (lev > 0 && elem.pathLast.length > 2 && searchWord.indexOf(elem.pathLast) > -1) {

0 commit comments

Comments
 (0)