From 258a56b473edea843eb20e80bbc7bf49eb040a32 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 4 Nov 2019 15:42:09 +0200 Subject: [PATCH] site/assets/js/search.js: ignore the LGTM alert (#29634) --- site/assets/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/assets/js/search.js b/site/assets/js/search.js index fcff6f6371..ab57ad2f00 100644 --- a/site/assets/js/search.js +++ b/site/assets/js/search.js @@ -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, '') -- 2.47.2