build: make eslint configuration use strict type checking
[poolifier.git] / src / worker / cluster-worker.ts
index 05fe25343acc736f53085947e551e3869486bf5f..1a9deb304aaebf8f919cf91716427e865d58a02d 100644 (file)
@@ -32,8 +32,7 @@ export class ClusterWorker<
     taskFunctions: TaskFunction<Data, Response> | TaskFunctions<Data, Response>,
     opts: WorkerOptions = {}
   ) {
-    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
-    super(cluster.isPrimary, cluster.worker!, taskFunctions, opts)
+    super(cluster.isPrimary, cluster.worker, taskFunctions, opts)
   }
 
   /** @inheritDoc */