chore: Clean up variable assignment. (#7962)

* chore: Clean up variable assignment.

* fix: variable now const as a result of prev commit
This commit is contained in:
Neil Fraser
2024-03-26 19:13:52 +01:00
committed by GitHub
parent 2f4bea4ede
commit 2ea9e21e6d
12 changed files with 16 additions and 18 deletions

View File

@@ -145,7 +145,7 @@ phpGenerator.forBlock['unittest_adjustindex'] = function(block) {
return [Number(index) + 1, phpGenerator.ORDER_ATOMIC];
} else {
// If the index is dynamic, adjust it in code.
index = index + ' + 1';
index += ' + 1';
}
} else if (Blockly.utils.string.isNumber(index)) {
return [index, phpGenerator.ORDER_ATOMIC];