From 7e8256a47434a10880f72dbe2e0a345f56025e19 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 17 Nov 2019 20:44:26 -0500 Subject: [PATCH] remove redudant await and remove logging --- src/class/Util.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index 5fe2862..2197a92 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -43,8 +43,6 @@ export default class Util { */ public resolveCommand(command: string, args?: string[], message?: Message): Promise<{cmd: Command, args: string[] }> { try { - this.client.signale.info(command); - this.client.signale.info(args); let resolvedCommand: Command; if (this.client.commands.has(command)) resolvedCommand = this.client.commands.get(command); @@ -117,7 +115,7 @@ export default class Util { } } - public splitFields(fields: {name: string, value: string, inline?: boolean}[]): {name: string, value: string, inline?: boolean}[][] { + public splitFields(fields: { name: string, value: string, inline?: boolean }[]): { name: string, value: string, inline?: boolean }[][] { let index = 0; const array: {name: string, value: string, inline?: boolean}[][] = [[]]; while (fields.length) { @@ -145,7 +143,7 @@ export default class Util { } - public async createHash(password: string) { + public async createHash(password: string): Promise { const hashed = await this.exec(`mkpasswd -m sha-512 "${password}"`); return hashed; } @@ -225,7 +223,7 @@ export default class Util { const expiration = { date, processed }; logInput.expiration = expiration; - const log = await new this.client.db.Moderation(logInput); + const log = new this.client.db.Moderation(logInput); await log.save(); let embedTitle: string;