Merge pull request #2069 from google/rachel-fenichel-patch-1

Fix inconsistent return type warning
This commit is contained in:
Rachel Fenichel
2018-09-25 14:28:43 -07:00
committed by GitHub

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) {