From 77a8aed93a127082fb92b771bba58454d36b305d Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 25 Oct 2024 14:54:06 +0100 Subject: [PATCH] refactor(lib/engine): replace `var` with `let` (#218) 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)