From e1d7237bced00b347795bf07d1530abae1e04cb8 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 22 Oct 2019 01:20:11 +0100 Subject: [PATCH] Better code --- src/commands/eval.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/eval.ts b/src/commands/eval.ts index e8b55ce..44efeab 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -44,9 +44,7 @@ export default class Eval extends Command { } } - return display.forEach((m) => { - message.channel.createMessage(`\`\`\`js\n${m}\n\`\`\``); - }); + return display.forEach((m) => message.channel.createMessage(`\`\`\`js\n${m}\n\`\`\``)); } catch (error) { return this.client.util.handleError(error, message, this); }