From: Jérôme Benoit Date: Sun, 4 Sep 2022 15:09:45 +0000 (+0200) Subject: Coding style cleanups X-Git-Tag: v1.1.70~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5af9aa8a875b3dbd4b4d394ecac022d046fa725c;p=e-mobility-charging-stations-simulator.git Coding style cleanups Signed-off-by: Jérôme Benoit --- 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,