Fix inconsistent return type warning

This commit is contained in:
Rachel Fenichel
2018-09-25 14:22:12 -07:00
committed by GitHub
parent f3a76cc288
commit 870e95a255

View File

@@ -369,7 +369,7 @@ Blockly.Block.prototype.unplugFromRow_ = function(opt_healStack) {
* @private
*/
Blockly.Block.prototype.getOnlyValueConnection_ = function() {
var connection = false;
var connection = null;
for (var i = 0; i < this.inputList.length; i++) {
var thisConnection = this.inputList[i].connection;
if (thisConnection && thisConnection.type == Blockly.INPUT_VALUE) {