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).
This commit is contained in:
Javi Martín
2024-05-17 01:49:49 +02:00
parent 5d4c5a12a8
commit 3d5696aff5

View File

@@ -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));
}