From: Jérôme Benoit Date: Mon, 10 Oct 2022 16:49:37 +0000 (+0200) Subject: Strict boolean check X-Git-Tag: v2.3.1~37 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b893d997f4d665375aa5b03b0b1d66eaa43076bb;p=poolifier.git Strict boolean check Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 0136f048..304dfba5 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -135,7 +135,7 @@ export abstract class AbstractPool< throw new Error( 'Cannot instantiate a pool without specifying the number of workers' ) - } else if (!Number.isSafeInteger(numberOfWorkers)) { + } else if (Number.isSafeInteger(numberOfWorkers) === false) { throw new Error( 'Cannot instantiate a pool with a non integer number of workers' )