Skip to content

Commit

Permalink
perf: remove unnecessary condition
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
  • Loading branch information
jerome-benoit committed May 20, 2024
1 parent 2fe5023 commit 90f764a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pools/abstract-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1482,8 +1482,7 @@ export abstract class AbstractPool<
// Kill message received from worker
if (
isKillBehavior(KillBehaviors.HARD, message.kill) ||
(workerUsage != null &&
isKillBehavior(KillBehaviors.SOFT, message.kill) &&
(isKillBehavior(KillBehaviors.SOFT, message.kill) &&
((this.opts.enableTasksQueue === false &&
workerUsage.tasks.executing === 0) ||
(this.opts.enableTasksQueue === true &&
Expand Down

0 comments on commit 90f764a

Please sign in to comment.