From d149310fefd7f03ea394e72e921021a2148be0df Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 16 Jul 2023 16:20:03 +0200 Subject: [PATCH] refactor: cleanup type casting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Configuration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index c58fdb0f..b88d3404 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -385,7 +385,7 @@ export class Configuration { if ( sectionName && !isUndefined(Configuration.getConfig()![sectionName]) && - !isUndefined((Configuration.getConfig()![sectionName] as object)[key]) + !isUndefined((Configuration.getConfig()![sectionName] as Record)[key]) ) { console.error( `${chalk.green(Configuration.logPrefix())} ${chalk.red( -- 2.34.1