From 762efc7bc8b95727c632895c383b720a1d28a5ff Mon Sep 17 00:00:00 2001 From: Antabuse-123 <64858450+Antabuse-123@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:29:25 +0200 Subject: [PATCH] fix: forgot the linter --- utils/curl.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/curl.js b/utils/curl.js index 0f73d12..9edf24f 100644 --- a/utils/curl.js +++ b/utils/curl.js @@ -96,15 +96,13 @@ const get = async (pathname, options) => { await pause(5000) } if (statusCode === 404) logger.warn('404') - if (statusCode === 35) - { + if (statusCode === 35) { logger.warn('SSL connect error, retrying') // If this error happens, it means that we have been banned // So we wait 5 minutes before retrying // I added 10 seconds to be sure that the server is ready await pause(1000 * 60 * 5 + 10000) - } - else logger.error('Error : ', statusCode) + } else logger.error('Error : ', statusCode) throw { code: statusCode } } return { data, statusCode }