repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c6532
)
Strict boolean check
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 10 Oct 2022 16:49:37 +0000
(18:49 +0200)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index 0136f048cdb761ad6bc8186197634b635d55c3ba..304dfba51151d5d7508ce40deabe9b1a28441d2f 100644
(file)
--- 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'
)