Fix sonarjs no-redundant-jump

This commit is contained in:
Bill Thornton 2022-10-08 02:50:20 -04:00
parent 762573bef8
commit 5e4eca6ae9
9 changed files with 0 additions and 10 deletions

View file

@ -76,7 +76,6 @@ module.exports = {
'sonarjs/cognitive-complexity': ['warn'], 'sonarjs/cognitive-complexity': ['warn'],
// TODO: Enable the following rules and fix issues // TODO: Enable the following rules and fix issues
'sonarjs/no-duplicate-string': ['off'], 'sonarjs/no-duplicate-string': ['off'],
'sonarjs/no-redundant-jump': ['off'],
'sonarjs/no-small-switch': ['off'], 'sonarjs/no-small-switch': ['off'],
'sonarjs/prefer-object-literal': ['off'], 'sonarjs/prefer-object-literal': ['off'],
'sonarjs/prefer-single-boolean-return': ['off'] 'sonarjs/prefer-single-boolean-return': ['off']

View file

@ -382,7 +382,6 @@ import template from './libraryoptionseditor.template.html';
return setContentType(parent, contentType).then(function() { return setContentType(parent, contentType).then(function() {
libraryOptions && setLibraryOptions(parent, libraryOptions); libraryOptions && setLibraryOptions(parent, libraryOptions);
bindEvents(parent); bindEvents(parent);
return;
}); });
}); });
} }

View file

@ -295,7 +295,6 @@ document.addEventListener('viewshow', function (e) {
mirrorIfEnabled({ mirrorIfEnabled({
item: item item: item
}); });
return;
} }
}); });

View file

@ -129,7 +129,6 @@ function executeCloseAction(action, programId, serverId) {
serverId: serverId serverId: serverId
}); });
}); });
return;
} }
} }

View file

@ -170,7 +170,6 @@ function renderSeriesTimerEditor(page, item, apiClient, user) {
page.querySelector('.seriesTimerScheduleSection').classList.add('hide'); page.querySelector('.seriesTimerScheduleSection').classList.add('hide');
hideAll(page, 'btnCancelSeriesTimer'); hideAll(page, 'btnCancelSeriesTimer');
return;
} }
function renderTrackSelections(page, instance, item, forceReload) { function renderTrackSelections(page, instance, item, forceReload) {

View file

@ -720,8 +720,6 @@ class ItemsView {
if (params.type === 'Video') { if (params.type === 'Video') {
return globalize.translate('Videos'); return globalize.translate('Videos');
} }
return;
} }
function play() { function play() {

View file

@ -35,7 +35,6 @@ import Dashboard from '../../../utils/dashboard';
Dashboard.navigate('forgotpasswordpin.html'); Dashboard.navigate('forgotpasswordpin.html');
} }
}); });
return;
} }
} }

View file

@ -190,7 +190,6 @@ import Sortable from 'sortablejs';
const itemsContainer = this; const itemsContainer = this;
if (getEventsToMonitor(itemsContainer).indexOf('seriestimers') !== -1) { if (getEventsToMonitor(itemsContainer).indexOf('seriestimers') !== -1) {
itemsContainer.notifyRefreshNeeded(); itemsContainer.notifyRefreshNeeded();
return;
} }
} }

View file

@ -193,7 +193,6 @@ class QueueCore {
} }
this.manager.haltGroupPlayback(apiClient); this.manager.haltGroupPlayback(apiClient);
return;
}); });
} }