refactor: remove unneeded condition in measurement statistics code
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Jul 2023 22:09:25 +0000 (00:09 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Jul 2023 22:09:25 +0000 (00:09 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts

index 22c3562094953666b8368e1389353b5316e0d212..5b6c18747bf51e74bb5676052071ba69b8db3f9a 100644 (file)
@@ -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(