From e04d8857f9d18e7e2a643e1ee5743d81d2b58bce Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Tue, 22 Oct 2024 07:49:42 +0200 Subject: [PATCH] Fix uninitialized variable --- util/lastfm/getCurrentScrobble.js | 1 + 1 file changed, 1 insertion(+) diff --git a/util/lastfm/getCurrentScrobble.js b/util/lastfm/getCurrentScrobble.js index bef6776..d1071ff 100644 --- a/util/lastfm/getCurrentScrobble.js +++ b/util/lastfm/getCurrentScrobble.js @@ -39,6 +39,7 @@ module.exports = async function (userID, guild) { } resolve(tracks); } catch (error) { + let scrobble = {}; scrobble.error = true; if (data.error === 6) { scrobble.errorMsg = "User not found. Use `fm set ` to set your last.fm username.";