refactor: ♻️ Fixed more code smells

I have fixed more code smells
This commit is contained in:
Axel Olausson Holtenäs 2022-12-13 14:27:00 +01:00
parent f022632de4
commit 2c6ec5ee2e

View file

@ -35,6 +35,7 @@ export default {
`${author.username} sent the last message therefor not allowing again.` `${author.username} sent the last message therefor not allowing again.`
); );
await message.delete(); await message.delete();
return false;
} }
if (content !== channelCounter.triggerWord) { if (content !== channelCounter.triggerWord) {
@ -43,6 +44,7 @@ export default {
); );
await message.delete(); await message.delete();
return false;
} }
const updateGuildCounter = await prisma.guildCounter.update({ const updateGuildCounter = await prisma.guildCounter.update({