Skip to content

Commit

Permalink
chore: imporve var naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeressian committed Dec 22, 2024
1 parent 44049ef commit 9de5e7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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(
Expand Down

0 comments on commit 9de5e7a

Please sign in to comment.