Skip to content

Commit

Permalink
Remove unused param from search.js::checkPath
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed May 9, 2022
1 parent db5b365 commit 521d2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ window.initSearch = rawSearchIndex => {
return parsedQuery.literalSearch ? MAX_LEV_DISTANCE + 1 : lev;
}

function checkPath(contains, lastElem, ty) {
function checkPath(contains, ty) {
if (contains.length === 0) {
return 0;
}
Expand Down Expand Up @@ -1306,7 +1306,7 @@ window.initSearch = rawSearchIndex => {
}

if (elem.fullPath.length > 1) {
lev = checkPath(elem.pathWithoutLast, elem.pathLast, row);
lev = checkPath(elem.pathWithoutLast, row);
if (lev > MAX_LEV_DISTANCE || (parsedQuery.literalSearch && lev !== 0)) {
return;
} else if (lev > 0) {
Expand Down

0 comments on commit 521d2c3

Please sign in to comment.