2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

site/assets/js/search.js: ignore the LGTM alert (#29634)

This commit is contained in:
XhmikosR
2019-11-04 15:42:09 +02:00
committed by GitHub
parent 972369c997
commit 258a56b473
+1 -1
View File
@@ -40,7 +40,7 @@
// When in production, return the result as is,
// otherwise remove our url from it.
// eslint-disable-next-line no-negated-condition
hit.url = currentUrl.indexOf(liveUrl) !== -1 ?
hit.url = currentUrl.indexOf(liveUrl) !== -1 ? // lgtm [js/incomplete-url-substring-sanitization]
hit.url :
hit.url.replace(liveUrl, '')