build: cleanup eslint configuration
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerSet.ts
index 62ddf8079f2f6377cd0f95fe62daac629a27a9bb..17b5b6dde201c85f4c0af0cbaf3574d33968fb03 100644 (file)
@@ -105,7 +105,7 @@ export class WorkerSet extends WorkerAbstract<WorkerData> {
     if (!this.started) {
       throw new Error('Cannot add a WorkerSet element: not started');
     }
-    if (!this.workerSet) {
+    if (this.workerSet == null) {
       throw new Error("Cannot add a WorkerSet element: 'workerSet' property does not exist");
     }
     const workerSetElement = await this.getWorkerSetElement();