Fix no-else-return eslint rule in ES5 files

[MAILPOET-1144]
This commit is contained in:
Pavel Dohnal
2017-11-29 15:04:38 +00:00
parent 3d2a433df1
commit 159e946093
9 changed files with 51 additions and 52 deletions

View File

@@ -111,9 +111,9 @@ define('modal', ['mailpoet', 'jquery'],
compileTemplate: function (template) {
if (this.renderer === 'html') {
return function () { return template; };
} else {
return window.Handlebars.compile(template);
}
return window.Handlebars.compile(template);
},
init: function (options) {
var modal;