From 3512bbce96a439d59fcfb768c373981e4244d018 Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-jy Date: Mon, 23 Oct 2023 16:45:33 -0700 Subject: [PATCH] fixed the format of jitter function --- lib/util.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/util.js b/lib/util.js index f0cf17060..284310f17 100644 --- a/lib/util.js +++ b/lib/util.js @@ -439,7 +439,8 @@ exports.jitteredSleepTime = function (numofRetries, currentSleepTime, maxSleepTi else { totalTimeout += sleep } - return {sleep ,totalTimeout} + + return {sleep, totalTimeout} } /** @@ -455,7 +456,8 @@ function chooseRandom (firstNumber, secondNumber) { if (firstNumber > secondNumber) { bigNumber = firstNumber; smallNumber = secondNumber; - } else if (firstNumber === secondNumber) { + } + else if (firstNumber === secondNumber) { bigNumber = 1; smallNumber = 0; }