mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
Remove extra else clauses
This commit is contained in:
@@ -23,7 +23,7 @@ Blockly.PHP['procedures_defreturn'] = function(block) {
|
||||
var workspace = block.workspace;
|
||||
var variables = Blockly.Variables.allUsedVarModels(workspace) || [];
|
||||
for (var i = 0, variable; variable = variables[i]; i++) {
|
||||
varName = variable.name;
|
||||
var varName = variable.name;
|
||||
if (block.getVars().indexOf(varName) == -1) {
|
||||
globals.push(Blockly.PHP.nameDB_.getName(varName,
|
||||
Blockly.VARIABLE_CATEGORY_NAME));
|
||||
|
||||
Reference in New Issue
Block a user