Skip to content

Commit

Permalink
refactor(auth): replace var with let
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 24, 2024
1 parent b440d9f commit 0f68442
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ function auth (pluginOptions) {
throw new Error('The value of options.run must be \'all\'')
}

/* eslint-disable-next-line no-var */
for (var i = 0; i < functions.length; i++) {
for (let i = 0; i < functions.length; i++) {
if (Array.isArray(functions[i]) === false) {
functions[i] = functions[i].bind(this)
} else {
/* eslint-disable-next-line no-var */
for (var j = 0; j < functions[i].length; j++) {
for (let j = 0; j < functions[i].length; j++) {
if (Array.isArray(functions[i][j])) {
throw new Error('Nesting sub-arrays is not supported')
}
Expand Down

0 comments on commit 0f68442

Please sign in to comment.