Strict boolean check
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 10 Oct 2022 16:49:37 +0000 (18:49 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 10 Oct 2022 16:49:37 +0000 (18:49 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts

index 0136f048cdb761ad6bc8186197634b635d55c3ba..304dfba51151d5d7508ce40deabe9b1a28441d2f 100644 (file)
@@ -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'
       )