refactor: ♻️ Fix code smells

This commit is contained in:
Axel Olausson Holtenäs 2022-12-13 15:16:27 +01:00
parent 975b9686dc
commit 35e2d2eee0

View file

@ -37,7 +37,7 @@ export const register = async (client: Client) => {
throw new Error(`📡 Invalid event type for event: ${name}`); throw new Error(`📡 Invalid event type for event: ${name}`);
} }
loadedEvents++; return loadedEvents++;
}; };
for await (const eventName of eventNames) { for await (const eventName of eventNames) {