build: cleanup eslint configuration
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerAbstract.ts
index 912f5256575bb2ca9a5b486bb8ed0cce8cd5bd9e..5e5e6fdbea05e01415415a852599e3a8ccb8ea27 100644 (file)
@@ -21,7 +21,7 @@ export abstract class WorkerAbstract<T extends WorkerData> {
    * @param workerOptions -
    */
   constructor(workerScript: string, workerOptions: WorkerOptions) {
-    if (workerScript === null || workerScript === undefined) {
+    if (workerScript == null) {
       throw new Error('Worker script is not defined');
     }
     if (typeof workerScript === 'string' && workerScript.trim().length === 0) {