Fixes eslint error

This commit is contained in:
alschmiedt
2019-07-09 11:28:36 -07:00
parent f30d79fbc8
commit 35341959d3

View File

@@ -359,7 +359,7 @@ Blockly.VariableMap.prototype.getVariablesOfType = function(type) {
Blockly.VariableMap.prototype.getVariableTypes = function(ws) {
var potentialTypes = [];
if (ws && ws.getPotentialVariableMap()) {
potentialTypes = Object.keys(ws.getPotentialVariableMap().variableMap_);
potentialTypes = Object.keys(ws.getPotentialVariableMap().variableMap_);
}
var types = Object.keys(this.variableMap_).concat(potentialTypes);
var hasEmpty = false;