From 4c663cce112846b02464e176a63bea924b79eb55 Mon Sep 17 00:00:00 2001 From: Pfych Date: Sat, 18 Sep 2021 15:33:20 +1000 Subject: [PATCH] Silence return type error --- bot/src/profile/buildProfileEmbed.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");