X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Ffixed.ts;h=c60266e3d72b623fb9225dcc20882c064d29438c;hb=213974b5edccae8fb938f92cda85047fb087a139;hp=aa731562011507f59b84cce1f7088be68924e0b0;hpb=67f3f2d6cb8f915ec71f81c4533ab80a6c6a6f0f;p=poolifier.git diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index aa731562..c60266e3 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -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) } /** @inheritDoc */