repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c8798b
)
refactor: cleanup type casting
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sun, 16 Jul 2023 14:20:03 +0000
(16:20 +0200)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/Configuration.ts
b/src/utils/Configuration.ts
index c58fdb0f1a83db0b133e4837fded129b8dd9c848..b88d340443ac59c863497a8a15fc1af5288d3e3a 100644
(file)
--- 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<string, unknown>
)[key])
) {
console.error(
`${chalk.green(Configuration.logPrefix())} ${chalk.red(