mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
ESlint no-useless-return
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user