From: Jérôme Benoit Date: Sun, 17 Sep 2023 12:04:10 +0000 (+0200) Subject: refactor: code cleanup X-Git-Tag: v2.6.45~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2d909eab97198b24b458ca866718b6d6520519a3;p=poolifier.git refactor: code cleanup Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/worker-selection/least.mjs b/benchmarks/worker-selection/least.mjs index b8766322..2abbae82 100644 --- a/benchmarks/worker-selection/least.mjs +++ b/benchmarks/worker-selection/least.mjs @@ -16,8 +16,8 @@ function generateRandomTasksMap ( const tasksMap = generateRandomTasksMap(60, 20) function loopSelect (tasksMap) { - let minValue = Infinity let minKey + let minValue = Infinity for (const [key, value] of tasksMap) { if (value === 0) { return key