refactor: remove unneeded branching in WCS code
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 19 Aug 2023 22:16:20 +0000 (00:16 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 19 Aug 2023 22:16:20 +0000 (00:16 +0200)
commitfce028d66b18a0e46571eb82457055fe3177d702
tree6513fca9bc829a7e89854e30fb3f259d976d5892
parente695d66fae7e1343a140fee2eaecb5069432fc36
refactor: remove unneeded branching in WCS code

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/least-busy-worker-choice-strategy.ts
src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
src/pools/selection-strategies/least-used-worker-choice-strategy.ts