From 61e4a75ef8f6974bf70f633056fbd0c044efcac3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 6 Jul 2023 00:09:25 +0200 Subject: [PATCH] refactor: remove unneeded condition in measurement statistics code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/abstract-pool.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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( -- 2.34.1