From bd14446390fef9de43507802cce14843bde81b26 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 28 Oct 2019 22:06:56 +0000 Subject: [PATCH] Fixed cert parsing again again --- src/commands/cwg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/cwg.ts b/src/commands/cwg.ts index 03a0b78..ef12358 100644 --- a/src/commands/cwg.ts +++ b/src/commands/cwg.ts @@ -32,7 +32,7 @@ export default class CWG extends Command { if (!account) return message.channel.createMessage(`${this.client.stores.emojis.error} Cannot locate account, please try again.`); try { if (args[4] && !args[5]) return message.channel.createMessage(`${this.client.stores.emojis.error} x509 Certificate key required`); - let certs: { cert?: string, key?: string }; if (args[5]) certs = { cert: args[4], key: args[5] }; else certs = null; + let certs: { cert?: string, key?: string }; if (args[5]) certs = { cert: args[4], key: args[5] }; const domain = await this.createDomain(account, args[2], Number(args[3]), certs); const embed = new RichEmbed(); embed.setTitle('Domain Creation');