mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
ESlint no-useless-return
This commit is contained in:
@@ -112,6 +112,6 @@
|
|||||||
"no-continue": "off",
|
"no-continue": "off",
|
||||||
"no-extra-semi": "off",
|
"no-extra-semi": "off",
|
||||||
"no-spaced-func": "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) {
|
if (!themes.length) {
|
||||||
instListEl.append($('<li/ >').addClass('no-themes').translateHtml('[[admin/appearance/themes:no-themes]]'));
|
instListEl.append($('<li/ >').addClass('no-themes').translateHtml('[[admin/appearance/themes:no-themes]]'));
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
templates.parse('admin/partials/theme_list', {
|
templates.parse('admin/partials/theme_list', {
|
||||||
themes: themes,
|
themes: themes,
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ $(document).ready(function () {
|
|||||||
app.alertError('[[global:please_log_in]]');
|
app.alertError('[[global:please_log_in]]');
|
||||||
app.previousUrl = url;
|
app.previousUrl = url;
|
||||||
window.location.href = config.relative_path + '/login';
|
window.location.href = config.relative_path + '/login';
|
||||||
return;
|
|
||||||
} else if (status === 302 || status === 308) {
|
} else if (status === 302 || status === 308) {
|
||||||
if (data.responseJSON && data.responseJSON.external) {
|
if (data.responseJSON && data.responseJSON.external) {
|
||||||
window.location.href = data.responseJSON.external;
|
window.location.href = data.responseJSON.external;
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ Controllers.handleURIErrors = function (err, req, res, next) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
next(err);
|
next(err);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ module.exports = function (User) {
|
|||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user