From 6501eda9e69fff639911308b3f2de26593ae18c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 9 Sep 2023 12:49:49 +0200 Subject: [PATCH] refactor: switch to public static instead of setter in configuration class 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, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index b9ba72a5..6b8023ab 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -42,6 +42,8 @@ type ConfigurationSectionType = | UIServerConfiguration; export class Configuration { + public static configurationChangeCallback: () => Promise; + private static configurationFile = join( dirname(fileURLToPath(import.meta.url)), 'assets', @@ -64,10 +66,6 @@ export class Configuration { // This is intentional } - public static set configurationChangeCallback(cb: () => Promise) { - Configuration.configurationChangeCallback = cb; - } - public static getConfigurationSection( sectionName: ConfigurationSection, ): T { -- 2.34.1