Fix sonarjs no-redundant-jump
This commit is contained in:
@@ -76,7 +76,6 @@ module.exports = {
|
||||
'sonarjs/cognitive-complexity': ['warn'],
|
||||
// TODO: Enable the following rules and fix issues
|
||||
'sonarjs/no-duplicate-string': ['off'],
|
||||
'sonarjs/no-redundant-jump': ['off'],
|
||||
'sonarjs/no-small-switch': ['off'],
|
||||
'sonarjs/prefer-object-literal': ['off'],
|
||||
'sonarjs/prefer-single-boolean-return': ['off']
|
||||
|
||||
@@ -382,7 +382,6 @@ import template from './libraryoptionseditor.template.html';
|
||||
return setContentType(parent, contentType).then(function() {
|
||||
libraryOptions && setLibraryOptions(parent, libraryOptions);
|
||||
bindEvents(parent);
|
||||
return;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -295,7 +295,6 @@ document.addEventListener('viewshow', function (e) {
|
||||
mirrorIfEnabled({
|
||||
item: item
|
||||
});
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -129,7 +129,6 @@ function executeCloseAction(action, programId, serverId) {
|
||||
serverId: serverId
|
||||
});
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -170,7 +170,6 @@ function renderSeriesTimerEditor(page, item, apiClient, user) {
|
||||
|
||||
page.querySelector('.seriesTimerScheduleSection').classList.add('hide');
|
||||
hideAll(page, 'btnCancelSeriesTimer');
|
||||
return;
|
||||
}
|
||||
|
||||
function renderTrackSelections(page, instance, item, forceReload) {
|
||||
|
||||
@@ -720,8 +720,6 @@ class ItemsView {
|
||||
if (params.type === 'Video') {
|
||||
return globalize.translate('Videos');
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
function play() {
|
||||
|
||||
@@ -35,7 +35,6 @@ import Dashboard from '../../../utils/dashboard';
|
||||
Dashboard.navigate('forgotpasswordpin.html');
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -190,7 +190,6 @@ import Sortable from 'sortablejs';
|
||||
const itemsContainer = this;
|
||||
if (getEventsToMonitor(itemsContainer).indexOf('seriestimers') !== -1) {
|
||||
itemsContainer.notifyRefreshNeeded();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -193,7 +193,6 @@ class QueueCore {
|
||||
}
|
||||
|
||||
this.manager.haltGroupPlayback(apiClient);
|
||||
return;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user