From e018dcaefee99c1f204f0df73ee22090f00e8af8 Mon Sep 17 00:00:00 2001 From: hands8142 <46277532+hands8142@users.noreply.github.com> Date: Sat, 26 Dec 2020 17:53:58 +0900 Subject: [PATCH] fix firstResult (#206) :bug: Fix firstResult --- src/Player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.js b/src/Player.js index 3d8d2f3..1cdfe69 100644 --- a/src/Player.js +++ b/src/Player.js @@ -174,7 +174,7 @@ class Player extends EventEmitter { if (tracks.length === 0) return this.emit('noResults', message, query) - if (firstResult) resolve(tracks[0]) + if (firstResult) return resolve(tracks[0]) this.emit('searchResults', message, query, tracks)