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

@@ -17,7 +17,7 @@ define('handlebars_helpers', ['handlebars'], function (Handlebars) {
var f;
if (window.moment) {
if (timestamp === undefined || isNaN(timestamp) || timestamp <= 0) {
return;
return undefined;
}
// set date format