X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fabstract-worker.ts;h=431354677c17b4da4f21035ba56b2e09ff98b34e;hb=b24933ab4df4687e66436a6fe15e812eabcddbfb;hp=e10521fcbc7808eeffeb778aa8dfb13ce0eb680e;hpb=493b2735fb0a4d4e5c6d855002303bd65bc5382f;p=poolifier.git diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index e10521fc..43135467 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -405,7 +405,7 @@ export abstract class AbstractWorker< private checkMessageWorkerId (message: MessageValue): void { if (message.workerId == null) { throw new Error('Message worker id is not set') - } else if (message.workerId != null && message.workerId !== this.id) { + } else if (message.workerId !== this.id) { throw new Error( `Message worker id ${message.workerId} does not match the worker id ${this.id}` )