Merge pull request #646 from 3flex/any-unused-params
Some checks are pending
Lint / Lint TS and CSS (push) Waiting to run
Publish / Build (push) Waiting to run
Publish / Publish (push) Blocked by required conditions
Publish / Deploy (push) Blocked by required conditions
Test / Jest (push) Waiting to run

Remove unused parameters
This commit is contained in:
Niels van Velzen 2024-10-25 14:25:14 +02:00 committed by GitHub
commit 35dc856d1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

View File

@ -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();
}
}

View File

@ -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;
}