Merge pull request #4058 from Aimekram/fix-eslint-no-shadow

Add eslint no-shadow rule and fix violations
This commit is contained in:
Bill Thornton
2022-10-20 10:56:15 -04:00
committed by GitHub
31 changed files with 273 additions and 275 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ function runInputLoop() {
}
// Iterate through the buttons to see if Left thumbstick, DPad, A and B are pressed.
const buttons = gamepad.buttons;
for (let j = 0, len = buttons.length; j < len; j++) {
for (let j = 0, buttonsLen = buttons.length; j < buttonsLen; j++) {
if (ProcessedButtons.indexOf(j) !== -1) {
if (buttons[j].pressed) {
switch (j) {