1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix-sonar-and-lint3

This commit is contained in:
Sky-High 2023-08-08 22:47:41 +02:00
parent a42c31d6c0
commit 4076148580

View file

@ -27,12 +27,10 @@ function sendConnectionResult(isOk) {
if (resolve) { if (resolve) {
resolve(); resolve();
} }
} else if (reject) {
reject();
} else { } else {
if (reject) { playbackManager.removeActivePlayer(PlayerName);
reject();
} else {
playbackManager.removeActivePlayer(PlayerName);
}
} }
} }
@ -294,7 +292,7 @@ class CastPlayer {
loadMedia(options, command) { loadMedia(options, command) {
if (!this.session) { if (!this.session) {
console.debug('no session'); console.debug('no session');
return Promise.reject(); return Promise.reject(new Error('no session'));
} }
// convert items to smaller stubs to send minimal amount of information // convert items to smaller stubs to send minimal amount of information
@ -602,7 +600,7 @@ class ChromecastPlayer {
currentResolve = null; currentResolve = null;
currentReject = null; currentReject = null;
return Promise.reject(); return Promise.reject(new Error('tryPair failed'));
} }
} }