From 053c6b8b2046bfd1c7fdbf8e39678bd0b6760427 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 24 Oct 2024 17:00:46 +0100 Subject: [PATCH] refactor(lib/engine): replace `var` with `let` Signed-off-by: Frazer Smith --- lib/engine.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/engine.js b/lib/engine.js index a697d6e..dd53e44 100644 --- a/lib/engine.js +++ b/lib/engine.js @@ -117,8 +117,7 @@ function middie (complete) { } function sanitizeUrl (url) { - /* eslint-disable-next-line no-var */ - for (var i = 0, len = url.length; i < len; i++) { + for (let i = 0, len = url.length; i < len; i++) { const charCode = url.charCodeAt(i) if (charCode === 63 || charCode === 35) { return url.slice(0, i)