1
Fork 0

Remove unused param from search.js::checkPath

This commit is contained in:
Michael Howell 2022-05-08 22:19:40 -07:00
parent db5b365fb0
commit 521d2c3d3c

View file

@ -1089,7 +1089,7 @@ window.initSearch = rawSearchIndex => {
return parsedQuery.literalSearch ? MAX_LEV_DISTANCE + 1 : lev; return parsedQuery.literalSearch ? MAX_LEV_DISTANCE + 1 : lev;
} }
function checkPath(contains, lastElem, ty) { function checkPath(contains, ty) {
if (contains.length === 0) { if (contains.length === 0) {
return 0; return 0;
} }
@ -1306,7 +1306,7 @@ window.initSearch = rawSearchIndex => {
} }
if (elem.fullPath.length > 1) { 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)) { if (lev > MAX_LEV_DISTANCE || (parsedQuery.literalSearch && lev !== 0)) {
return; return;
} else if (lev > 0) { } else if (lev > 0) {