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

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