From 9de5e7ac5caef97154ad2303c0ff57d872d14ece Mon Sep 17 00:00:00 2001 From: Ara Yeressian Date: Sun, 22 Dec 2024 12:25:02 +0400 Subject: [PATCH] chore: imporve var naming --- src/remove.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/remove.ts b/src/remove.ts index 1cd0079..636c0ee 100644 --- a/src/remove.ts +++ b/src/remove.ts @@ -8,8 +8,8 @@ const remove = async ( storagePassword: string, storageEndpoint: string ) => { - const _destination = destination ? `${destination}/` : ""; - const url = `https://${storageEndpoint}/${storageName}/${_destination}`; + destination = destination ? `${destination}/` : ""; + const url = `https://${storageEndpoint}/${storageName}/${destination}`; info(`Removing storage data with ${url}`); await promiseRetry(async (attempt) => { @@ -26,7 +26,7 @@ const remove = async ( }); if (response.status === 404) { - info(`Destination not found: ${storageName}/${_destination}`); + info(`Destination not found: ${storageName}/${destination}`); } else if (response.status !== 200 && response.status !== 400) { // THERE IS A BUG IN API 400 IS VALID SOMETIMES warning(