refactor: cleanup type casting
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 16 Jul 2023 14:20:03 +0000 (16:20 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 16 Jul 2023 14:20:03 +0000 (16:20 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Configuration.ts

index c58fdb0f1a83db0b133e4837fded129b8dd9c848..b88d340443ac59c863497a8a15fc1af5288d3e3a 100644 (file)
@@ -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<string, unknown>)[key])
     ) {
       console.error(
         `${chalk.green(Configuration.logPrefix())} ${chalk.red(