diff --git a/NodeApp/src/config/Config.ts b/NodeApp/src/config/Config.ts index 0d4a44168662f721fed645343e26816b1efc44e5..a571f7ec77dfd8f3837e7091c3a3b25f4c4b141c 100644 --- a/NodeApp/src/config/Config.ts +++ b/NodeApp/src/config/Config.ts @@ -36,8 +36,6 @@ class Config { public interactiveMode!: boolean; - constructor() { } - async init(apiUrl: string) { await ClientsSharedConfig.init(apiUrl); const getEnvVar = ClientsSharedConfig.envVarGetter(); @@ -72,7 +70,7 @@ class Config { }; const interactiveMode: boolean | null = ConfigFiles.stateConfigFile.getParam(this.INTERACTIVE_MODE_CONFIG_KEY) as boolean | null; - this.interactiveMode = interactiveMode == null ? await this.askInteractiveMode() : interactiveMode; + this.interactiveMode = interactiveMode ?? await this.askInteractiveMode(); } setInteractiveMode(state: boolean) {