mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix sonarjs no-redundant-jump
This commit is contained in:
parent
762573bef8
commit
5e4eca6ae9
9 changed files with 0 additions and 10 deletions
|
@ -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']
|
||||||
|
|
|
@ -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;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -295,7 +295,6 @@ document.addEventListener('viewshow', function (e) {
|
||||||
mirrorIfEnabled({
|
mirrorIfEnabled({
|
||||||
item: item
|
item: item
|
||||||
});
|
});
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,6 @@ function executeCloseAction(action, programId, serverId) {
|
||||||
serverId: serverId
|
serverId: serverId
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -35,7 +35,6 @@ import Dashboard from '../../../utils/dashboard';
|
||||||
Dashboard.navigate('forgotpasswordpin.html');
|
Dashboard.navigate('forgotpasswordpin.html');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,6 @@ class QueueCore {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.manager.haltGroupPlayback(apiClient);
|
this.manager.haltGroupPlayback(apiClient);
|
||||||
return;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue