Fix consistent-return eslint rule in ES5 files

[MAILPOET-1144]
This commit is contained in:
Pavel Dohnal
2017-11-29 13:43:35 +00:00
parent dee2ff810c
commit ea552508b4
11 changed files with 15 additions and 7 deletions

View File

@@ -54,6 +54,7 @@ define([
if (invalidBlock) {
return invalidBlock.validationError;
}
return undefined;
},
parse: function (response) {
// If container has any blocks - add them to a collection
@@ -132,6 +133,7 @@ define([
WidgetView.destroy();
return node;
}
return undefined;
},
testAttachToInstance: function (model, view) {
// Attach Draggable only to layout containers and disable it