Skip to content

Commit

Permalink
refactor(lib/engine): replace var with let (#218)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Oct 25, 2024
1 parent 1cd86e7 commit 77a8aed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77a8aed

Please sign in to comment.