From aff198a8a8e0d52b755152e73514ef6335153b4a Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Sun, 29 Aug 2021 11:37:11 +0545 Subject: [PATCH] style: remove useless comment --- src/Structures/Queue.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 769764f..320903d 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -493,14 +493,10 @@ class Queue { */ jump(track: Track | number): void { if (this.#watchDestroyed()) return; - // remove the track if exists const foundTrack = this.remove(track); if (!foundTrack) throw new PlayerError("Track not found", ErrorStatusCode.TRACK_NOT_FOUND); - // since we removed the existing track from the queue, - // we now have to place that to position 1 - // because we want to jump to that track - // this will skip current track and play the next one which will be the foundTrack - this.tracks.splice(0, 0, foundTrack); + + this.tracks.splice(0, 0, foundTrack); return void this.skip(); }