From: Jérôme Benoit Date: Sun, 16 Jul 2023 14:20:03 +0000 (+0200) Subject: refactor: cleanup type casting X-Git-Tag: v1.2.18~26 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d149310fefd7f03ea394e72e921021a2148be0df;p=e-mobility-charging-stations-simulator.git refactor: cleanup type casting Signed-off-by: Jérôme Benoit --- 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(