🧑‍💻 Fixed some more code smells

This commit is contained in:
Axel Olausson Holtenäs 2022-10-16 15:26:58 +02:00
parent 4c348a6e73
commit 26f9420f67

View file

@ -39,16 +39,13 @@ export const execute = async (client: Client, role: IShopRole) => {
roleId,
guildId,
})
.then(async () => {
.then(() => {
logger.silly(
`Shop role document ${roleId} has been deleted from user ${userId}.`
);
})
.catch(async (err) => {
throw new Error(
`Error deleting shop role document ${roleId} from user ${userId}.`,
err
);
.catch(() => {
throw new Error("Failed deleting shop role from user.");
});
})
.catch(() => {