Block generator warnings (#3353)

This commit is contained in:
Sam El-Husseini
2019-10-28 16:20:25 -07:00
committed by GitHub
parent cbf867f441
commit 72c6aa8699
9 changed files with 17 additions and 18 deletions

View File

@@ -76,7 +76,7 @@ Blockly.Python['math_single'] = function(block) {
var arg;
if (operator == 'NEG') {
// Negation is a special case given its different operator precedence.
var code = Blockly.Python.valueToCode(block, 'NUM',
code = Blockly.Python.valueToCode(block, 'NUM',
Blockly.Python.ORDER_UNARY_SIGN) || '0';
return ['-' + code, Blockly.Python.ORDER_UNARY_SIGN];
}