mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix sonarjs no-small-switch
This commit is contained in:
parent
762573bef8
commit
76ed503c81
8 changed files with 29 additions and 46 deletions
|
@ -334,12 +334,8 @@ function showDownloadOptions(button, context, subtitleId) {
|
|||
positionTo: button
|
||||
|
||||
}).then(function (id) {
|
||||
switch (id) {
|
||||
case 'download':
|
||||
downloadRemoteSubtitles(context, subtitleId);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
if (id === 'download') {
|
||||
downloadRemoteSubtitles(context, subtitleId);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue