fix: fix overrides handling for dependencies
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStationWorker.ts
index 0ae95a618913e724eaab7c0dd8d509d4590b0e8c..24ee468c0a5cc1244cd52890fc279d07fde70df7 100644 (file)
@@ -6,7 +6,7 @@ import { ThreadWorker } from 'poolifier';
 
 import { ChargingStation } from './ChargingStation';
 import type { ChargingStationWorkerData } from '../types';
-import { Configuration, Utils } from '../utils';
+import { Configuration } from '../utils';
 import { WorkerConstants, type WorkerMessage, WorkerMessageEvents } from '../worker';
 
 /**
@@ -40,7 +40,7 @@ if (Configuration.workerPoolInUse()) {
 } else {
   // Add message listener to start charging station from main thread
   addMessageListener();
-  if (Utils.isUndefined(workerData) === false) {
+  if (workerData !== undefined) {
     startChargingStation(workerData as ChargingStationWorkerData);
   }
 }