From 3d5696aff5d2db0ed478fdc07ab2e74708950869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 17 May 2024 01:49:49 +0200 Subject: [PATCH] Apply no-redeclare ESLint rule This rule is part of the `eslint:recommended` package. It was the only rule we weren't following 100% of the time (other than the line length). --- app/assets/javascripts/managers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/managers.js b/app/assets/javascripts/managers.js index 0308e4ba1..78774bb29 100644 --- a/app/assets/javascripts/managers.js +++ b/app/assets/javascripts/managers.js @@ -20,11 +20,11 @@ pass += possible_chars.charAt(Math.floor(Math.random() * possible_chars.length)).toUpperCase(); } - for (var i = 0; i < password_complexity.digit; i++) { + for (var j = 0; j < password_complexity.digit; j++) { pass += possible_digits.charAt(Math.floor(Math.random() * possible_digits.length)); } - for (var i = 0; i < password_complexity.symbol; i++) { + for (var k = 0; k < password_complexity.symbol; k++) { pass += possible_symbols.charAt(Math.floor(Math.random() * possible_symbols.length)); }