mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user