From f507131ae23413c510f5bbc65bca81389c611116 Mon Sep 17 00:00:00 2001 From: Matthew Ray Date: Tue, 12 May 2020 10:35:28 -0400 Subject: [PATCH] typing fix --- src/commands/cwg_create.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/cwg_create.ts b/src/commands/cwg_create.ts index 3bf37a1..d9554c7 100644 --- a/src/commands/cwg_create.ts +++ b/src/commands/cwg_create.ts @@ -72,6 +72,8 @@ export default class CWG_Create extends Command { certs = { cert: certAndPrivateKey[0], key: certAndPrivateKey[1] }; } else { + // eslint-disable-next-line no-shadow + const certs: { cert?: string, key?: string } = {}; certs.cert = await fs.readFile('/etc/ssl/private/cloud-libraryofcode-org.chain.crt', { encoding: 'utf8' }); certs.key = await fs.readFile('/etc/ssl/private/cloud-libraryofcode-org.key', { encoding: 'utf8' }); }