Silence return type error

This commit is contained in:
Pfych
2021-09-18 15:33:20 +10:00
parent bd7af1182d
commit 4c663cce11
+2 -2
View File
@@ -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");