From 5af9aa8a875b3dbd4b4d394ecac022d046fa725c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 4 Sep 2022 17:09:45 +0200 Subject: [PATCH] Coding style cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/Bootstrap.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index bc0f87d7..8734ed22 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -53,12 +53,11 @@ export class Bootstrap { 'ChargingStationWorker' + path.extname(fileURLToPath(import.meta.url)) ); this.initialize(); - if (Configuration.getUIServer().enabled === true) { - this.uiServer = UIServerFactory.getUIServerImplementation( + Configuration.getUIServer().enabled === true && + (this.uiServer = UIServerFactory.getUIServerImplementation( Configuration.getUIServer().type, Configuration.getUIServer() - ); - } + )); Configuration.getPerformanceStorage().enabled === true && (this.storage = StorageFactory.getStorage( Configuration.getPerformanceStorage().type, -- 2.34.1