ESlint no-useless-return

This commit is contained in:
Peter Jaszkowiak
2017-02-17 22:13:41 -07:00
parent 879470f417
commit 3d6bfa47c5
5 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -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,

View File

@@ -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;

View File

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

View File

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