diff --git a/bot/src/profile/buildProfileEmbed.ts b/bot/src/profile/buildProfileEmbed.ts index eacc4e7b6..5021fa24e 100644 --- a/bot/src/profile/buildProfileEmbed.ts +++ b/bot/src/profile/buildProfileEmbed.ts @@ -109,9 +109,9 @@ export const buildProfileIntractable = async ( ); return { embeds: [await buildProfileEmbed(data, game)], components: [dropdown] }; - } else { - throw new Error(`No data found for user ${userId}`); } + + throw new Error(`No data found for user ${userId}`); } catch (e) { logger.error("Unable to build profile interactable"); throw new Error("Unable to build profile interactable");