mirror of
https://github.com/jellyfin/jellyfin-chromecast.git
synced 2024-11-27 08:10:36 +00:00
Merge pull request #646 from 3flex/any-unused-params
Remove unused parameters
This commit is contained in:
commit
35dc856d1b
@ -90,13 +90,13 @@ export abstract class CommandHandler {
|
||||
|
||||
static nextTrackHandler(): void {
|
||||
if (PlaybackManager.hasNextItem()) {
|
||||
PlaybackManager.playNextItem({}, true);
|
||||
PlaybackManager.playNextItem(true);
|
||||
}
|
||||
}
|
||||
|
||||
static previousTrackHandler(): void {
|
||||
if (PlaybackManager.hasPrevItem()) {
|
||||
PlaybackManager.playPreviousItem({});
|
||||
PlaybackManager.playPreviousItem();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,13 +150,12 @@ export abstract class PlaybackManager {
|
||||
return this.activePlaylistIndex > 0;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
static playNextItem(options: any = {}, stopPlayer = false): boolean {
|
||||
static playNextItem(stopPlayer = false): boolean {
|
||||
const nextItemInfo = this.getNextPlaybackItemInfo();
|
||||
|
||||
if (nextItemInfo) {
|
||||
this.activePlaylistIndex = nextItemInfo.index;
|
||||
this.playItem(options, stopPlayer);
|
||||
this.playItem({}, stopPlayer);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -164,11 +163,10 @@ export abstract class PlaybackManager {
|
||||
return false;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
static playPreviousItem(options: any = {}): boolean {
|
||||
static playPreviousItem(): boolean {
|
||||
if (this.activePlaylist && this.activePlaylistIndex > 0) {
|
||||
this.activePlaylistIndex--;
|
||||
this.playItem(options, true);
|
||||
this.playItem({}, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user