build(deps-dev): apply updates
[poolifier.git] / src / pools / abstract-pool.ts
index ab114e1a3fbdf6a5ae1575d7ba6dbf43615ef0b9..3f6fa98ae373cfb7054747f089ebaa6fb0c84420 100644 (file)
@@ -283,6 +283,7 @@ export abstract class AbstractPool<
       ready: this.ready,
       // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
       strategy: this.opts.workerChoiceStrategy!,
+      strategyRetries: this.workerChoiceStrategyContext?.retriesCount ?? 0,
       minSize: this.minimumNumberOfWorkers,
       maxSize: this.maximumNumberOfWorkers ?? this.minimumNumberOfWorkers,
       ...(this.workerChoiceStrategyContext?.getTaskStatisticsRequirements()
@@ -461,10 +462,7 @@ export abstract class AbstractPool<
    * The pool emptiness boolean status.
    */
   protected get empty (): boolean {
-    if (this.minimumNumberOfWorkers === 0 && this.workerNodes.length === 0) {
-      return true
-    }
-    return false
+    return this.minimumNumberOfWorkers === 0 && this.workerNodes.length === 0
   }
 
   /**