From f028efcac4512be662211c90b3fb2107f6830319 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 28 Jul 2023 21:39:59 +0200 Subject: [PATCH] fix: fix integer check condition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/worker/WorkerSet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index 0f820411..e0730678 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -41,7 +41,7 @@ export class WorkerSet extends WorkerAbstract { ) { throw new TypeError('Elements per worker is not defined'); } - if (Number.isSafeInteger(this.workerOptions.elementsPerWorker)) { + if (!Number.isSafeInteger(this.workerOptions.elementsPerWorker)) { throw new TypeError('Elements per worker must be an integer'); } if (this.workerOptions.elementsPerWorker <= 0) { -- 2.34.1