From 455ee9cf1788779d13cedfcf4eaa91a0d7921c16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 8 Mar 2022 18:50:52 +0100 Subject: [PATCH] Fix deprecated configuration key detection in a section 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 7309ec2f..9d873d2f 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -299,9 +299,9 @@ export default class Configuration { if ( sectionName && !Configuration.isUndefined(Configuration.getConfig()[sectionName]) && - !Configuration.isUndefined(Configuration.getConfig()[sectionName] as Record)[ - key - ] + !Configuration.isUndefined( + (Configuration.getConfig()[sectionName] as Record)[key] + ) ) { console.error( chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage in section '${sectionName}'${ -- 2.34.1