From 241a22b5d1cf688b5c43b3401d87f5923c834b0b Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 22 Feb 2023 13:48:29 +0500 Subject: [PATCH] pretty --- src/Structures/Queue.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 1ebda6c..0525643 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -628,11 +628,11 @@ class Queue { const hasCustomDownloader = typeof this.onBeforeCreateStream === "function"; if (["youtube", "spotify", "soundcloud"].includes(track.raw.source)) { - let spotifyResolved = false; if (track.raw.source === "spotify" && !track.raw.engine) { - track.raw.engine = await play.search(`${track.author} ${track.title}`, { limit: 5 }) - .then(res => res[0].url) + track.raw.engine = await play + .search(`${track.author} ${track.title}`, { limit: 5 }) + .then((res) => res[0].url) .catch(Util.noop); spotifyResolved = true; }