Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Fix deprecated configuration key detection in a section
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
  • Loading branch information
Jérôme Benoit committed Mar 8, 2022
1 parent 1303768 commit 455ee9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/Configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ export default class Configuration {
if (
sectionName &&
!Configuration.isUndefined(Configuration.getConfig()[sectionName]) &&
!Configuration.isUndefined(Configuration.getConfig()[sectionName] as Record<string, unknown>)[
key
]
!Configuration.isUndefined(
(Configuration.getConfig()[sectionName] as Record<string, unknown>)[key]
)
) {
console.error(
chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage in section '${sectionName}'${
Expand Down

0 comments on commit 455ee9c

Please sign in to comment.