ESlint no-useless-return

v1.18.x
Peter Jaszkowiak 8 years ago
parent 879470f417
commit 3d6bfa47c5

@ -112,6 +112,6 @@
"no-continue": "off",
"no-extra-semi": "off",
"no-spaced-func": "off",
"no-useless-return": "off"
// "no-useless-return": "off"
}
}

@ -72,7 +72,7 @@ define('admin/appearance/themes', ['translator'], function (translator) {
if (!themes.length) {
instListEl.append($('<li/ >').addClass('no-themes').translateHtml('[[admin/appearance/themes:no-themes]]'));
return;
} else {
templates.parse('admin/partials/theme_list', {
themes: themes,

@ -158,7 +158,7 @@ $(document).ready(function () {
app.alertError('[[global:please_log_in]]');
app.previousUrl = url;
window.location.href = config.relative_path + '/login';
return;
} else if (status === 302 || status === 308) {
if (data.responseJSON && data.responseJSON.external) {
window.location.href = data.responseJSON.external;

@ -414,7 +414,7 @@ Controllers.handleURIErrors = function (err, req, res, next) {
}
}
return;
} else {
next(err);
}

@ -63,7 +63,7 @@ module.exports = function (User) {
callback();
}
return;
};
};

Loading…
Cancel
Save