From 45f432000849fa9fd1ec151ede3c389fa38308ad Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Fri, 14 Jul 2023 00:41:57 +0300 Subject: [PATCH] Refactor: Fixed docstring for retryer function (#2937) --- src/common/retryer.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/common/retryer.js b/src/common/retryer.js index 5351cbe..73a7d9d 100644 --- a/src/common/retryer.js +++ b/src/common/retryer.js @@ -9,11 +9,10 @@ const RETRIES = PATs ? PATs : 7; /** * Try to execute the fetcher function until it succeeds or the max number of retries is reached. * - * @param {object[]} retryerParams Object that contains the createTextNode parameters. - * @param {object[]} retryerParams.fetcher The fetcher function. - * @param {object[]} retryerParams.variables Object with arguments to pass to the fetcher function. - * @param {number} retryerParams.retries How many times to retry. - * @returns Promise + * @param {object[]} fetcher The fetcher function. + * @param {object[]} variables Object with arguments to pass to the fetcher function. + * @param {number} retries How many times to retry. + * @returns {Promise} The response from the fetcher function. */ const retryer = async (fetcher, variables, retries = 0) => { if (retries > RETRIES) {