build(deps-dev): apply updates
[poolifier.git] / src / pools / cluster / fixed.ts
index aa731562011507f59b84cce1f7088be68924e0b0..c60266e3d72b623fb9225dcc20882c064d29438c 100644 (file)
@@ -54,9 +54,8 @@ export class FixedClusterPool<
   ): void {
     this.workerNodes[workerNodeKey].worker.send({
       ...message,
-      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
-      workerId: this.getWorkerInfo(workerNodeKey).id!
-    })
+      workerId: this.getWorkerInfo(workerNodeKey)?.id
+    } satisfies MessageValue<Data>)
   }
 
   /** @inheritDoc */