From: Jérôme Benoit Date: Wed, 5 Jul 2023 22:09:25 +0000 (+0200) Subject: refactor: remove unneeded condition in measurement statistics code X-Git-Tag: v2.6.9~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=61e4a75ef8f6974bf70f633056fbd0c044efcac3;p=poolifier.git refactor: remove unneeded condition in measurement statistics code Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 22c35620..5b6c1874 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -739,8 +739,7 @@ export abstract class AbstractPool< } if ( this.workerChoiceStrategyContext.getTaskStatisticsRequirements().elu - .median && - message.taskPerformance?.elu != null + .median ) { workerUsage.elu.idle.history.push(message.taskPerformance.elu.idle) workerUsage.elu.active.history.push(