Simplify WorkerUtils.defaultErrorHandler usage in WorkerSet
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStationWorker.ts
index 626e6e072c3d63f6869be875cbe7be13e3e2f25f..4f109bf5023206c826e55f880c278d576ccaafa3 100644 (file)
@@ -24,7 +24,7 @@ if (ChargingStationUtils.workerPoolInUse()) {
 } else {
   // Add message listener to start charging station from main thread
   addMessageListener();
-  if (!Utils.isUndefined(workerData)) {
+  if (Utils.isUndefined(workerData) === false) {
     startChargingStation(workerData as ChargingStationWorkerData);
   }
 }