diff --git a/.eslintrc.js b/.eslintrc.js index 0f94de8ed9..abc2cf37a1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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'] diff --git a/src/components/libraryoptionseditor/libraryoptionseditor.js b/src/components/libraryoptionseditor/libraryoptionseditor.js index 2d67f04f0f..00cac68136 100644 --- a/src/components/libraryoptionseditor/libraryoptionseditor.js +++ b/src/components/libraryoptionseditor/libraryoptionseditor.js @@ -382,7 +382,6 @@ import template from './libraryoptionseditor.template.html'; return setContentType(parent, contentType).then(function() { libraryOptions && setLibraryOptions(parent, libraryOptions); bindEvents(parent); - return; }); }); } diff --git a/src/components/playback/playerSelectionMenu.js b/src/components/playback/playerSelectionMenu.js index 9cbe2e5ac0..94c3c4b439 100644 --- a/src/components/playback/playerSelectionMenu.js +++ b/src/components/playback/playerSelectionMenu.js @@ -295,7 +295,6 @@ document.addEventListener('viewshow', function (e) { mirrorIfEnabled({ item: item }); - return; } }); diff --git a/src/components/recordingcreator/recordingcreator.js b/src/components/recordingcreator/recordingcreator.js index 4387b2e09b..6720a43475 100644 --- a/src/components/recordingcreator/recordingcreator.js +++ b/src/components/recordingcreator/recordingcreator.js @@ -129,7 +129,6 @@ function executeCloseAction(action, programId, serverId) { serverId: serverId }); }); - return; } } diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index 5482c4d479..a740e450f9 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -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) { diff --git a/src/controllers/list.js b/src/controllers/list.js index 4c9e97ca48..09d398451f 100644 --- a/src/controllers/list.js +++ b/src/controllers/list.js @@ -720,8 +720,6 @@ class ItemsView { if (params.type === 'Video') { return globalize.translate('Videos'); } - - return; } function play() { diff --git a/src/controllers/session/forgotPassword/index.js b/src/controllers/session/forgotPassword/index.js index 208e54d063..87a0498bf0 100644 --- a/src/controllers/session/forgotPassword/index.js +++ b/src/controllers/session/forgotPassword/index.js @@ -35,7 +35,6 @@ import Dashboard from '../../../utils/dashboard'; Dashboard.navigate('forgotpasswordpin.html'); } }); - return; } } diff --git a/src/elements/emby-itemscontainer/emby-itemscontainer.js b/src/elements/emby-itemscontainer/emby-itemscontainer.js index da9592ca19..b6d0f147b7 100644 --- a/src/elements/emby-itemscontainer/emby-itemscontainer.js +++ b/src/elements/emby-itemscontainer/emby-itemscontainer.js @@ -190,7 +190,6 @@ import Sortable from 'sortablejs'; const itemsContainer = this; if (getEventsToMonitor(itemsContainer).indexOf('seriestimers') !== -1) { itemsContainer.notifyRefreshNeeded(); - return; } } diff --git a/src/plugins/syncPlay/core/QueueCore.js b/src/plugins/syncPlay/core/QueueCore.js index cdf1d56a1e..f1a435106e 100644 --- a/src/plugins/syncPlay/core/QueueCore.js +++ b/src/plugins/syncPlay/core/QueueCore.js @@ -193,7 +193,6 @@ class QueueCore { } this.manager.haltGroupPlayback(apiClient); - return; }); }