refactor: silence sonar
[poolifier.git] / src / pools / selection-strategies / least-elu-worker-choice-strategy.ts
index eca5a1cf541eca5d25102cacf821a08b556ad894..5df742a665d5d9b5ed838beb887e426da43ade07 100644 (file)
@@ -63,7 +63,7 @@ export class LeastEluWorkerChoiceStrategy<
       const workerElu = workerUsage.elu?.active.aggregate ?? 0
       if (workerElu === 0) {
         this.nextWorkerNodeId = workerNodeKey
-        return true
+        break
       } else if (workerElu < minWorkerElu) {
         minWorkerElu = workerElu
         this.nextWorkerNodeId = workerNodeKey