From 9b412ae7df1ddeb4bae5de96e228bb7fc933f30e Mon Sep 17 00:00:00 2001 From: eirk Date: Tue, 10 Aug 2021 17:18:35 -0400 Subject: [PATCH] one liner --- src/class/Client.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/class/Client.ts b/src/class/Client.ts index 92f05ba..4c150a3 100644 --- a/src/class/Client.ts +++ b/src/class/Client.ts @@ -159,9 +159,7 @@ export default class Client extends DiscordClient { }); const intervals = await fs.readdir(`${__dirname}/../intervals`); intervals.forEach((interval) => { - if (interval === 'index.js') { - return; - } + if (interval === 'index.js') return; require(`${__dirname}/../intervals/${interval}`).default(this); this.signale.complete(`Loaded interval ${interval.split('.')[0]}`); });