repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: check for null and undefined
[poolifier.git]
/
src
/
pools
/
abstract-pool.ts
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index 476a523740807e14dc44a3c9d8ff5bc323d0b804..ad21effb3bbb9837977a54c2f8c159c85af6b3c8 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-189,7
+189,6
@@
export abstract class AbstractPool<
})
}
this.workerChoiceStrategyContext.setWorkerChoiceStrategy(
})
}
this.workerChoiceStrategyContext.setWorkerChoiceStrategy(
- this,
workerChoiceStrategy
)
}
workerChoiceStrategy
)
}
@@
-381,9
+380,9
@@
export abstract class AbstractPool<
*/
protected workerListener (): (message: MessageValue<Response>) => void {
return message => {
*/
protected workerListener (): (message: MessageValue<Response>) => void {
return message => {
- if (message.id !=
= undefined
) {
+ if (message.id !=
null
) {
const promiseResponse = this.promiseResponseMap.get(message.id)
const promiseResponse = this.promiseResponseMap.get(message.id)
- if (promiseResponse !=
= undefined
) {
+ if (promiseResponse !=
null
) {
if (message.error != null) {
promiseResponse.reject(message.error)
} else {
if (message.error != null) {
promiseResponse.reject(message.error)
} else {