X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=8734ed2284b38c5c0e8706cbb86e8afa013c1d0c;hb=7acb3f7bb991a6d02a4521c0cbc5f163aa5e8a61;hp=bc0f87d7fba0f7d20ea5cab784c7bd0fd369f3c4;hpb=eb3abc4fe41400debcf894e53f91937498e77571;p=e-mobility-charging-stations-simulator.git 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,