mirror of
https://github.com/google/blockly.git
synced 2026-01-16 21:37:10 +01:00
Resolve 106 warnings.
This commit is contained in:
@@ -101,7 +101,7 @@ Blockly.Input.prototype.insertFieldAt = function(index, field, opt_name) {
|
||||
|
||||
// Empty string, Null or undefined generates no field, unless field is named.
|
||||
if (!field && !opt_name) {
|
||||
return this;
|
||||
return index;
|
||||
}
|
||||
// Generate a FieldLabel when given a plain text field.
|
||||
if (goog.isString(field)) {
|
||||
|
||||
Reference in New Issue
Block a user