refactor: renable standard JS linter rules
[poolifier.git] / src / worker / cluster-worker.ts
index fa810c7e66451ba978320ab887c8073c74214a88..05fe25343acc736f53085947e551e3869486bf5f 100644 (file)
@@ -32,7 +32,8 @@ export class ClusterWorker<
     taskFunctions: TaskFunction<Data, Response> | TaskFunctions<Data, Response>,
     opts: WorkerOptions = {}
   ) {
-    super(cluster.isPrimary, cluster.worker as Worker, taskFunctions, opts)
+    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+    super(cluster.isPrimary, cluster.worker!, taskFunctions, opts)
   }
 
   /** @inheritDoc */