Skip to content

Commit 267fe3b

Browse files
authored
Rollup merge of #98230 - GuillaumeGomez:weird-js-condition, r=notriddle
Fix weird js condition While going around the code, I found this weird condition. Fixing also affects the generated results in some cases apparently (could only find this one). Any idea maybe `@notriddle?` r? `@notriddle`
2 parents 0a66e3a + 5fef77d commit 267fe3b

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)