Skip to content

Commit

Permalink
Rollback update to s3Client
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Oct 8, 2023
1 parent 2ae8197 commit cbd3376
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions web/src/core/adapters/s3client/s3Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,7 @@ export async function createS3Client(params: Params): Promise<S3Client> {
bucketItem.prefix.replace(/\/+$/, "").replace(prefix, "")
);
} else {
const { name } = bucketItem;
if (name === undefined) {
console.warn(`Bucket item name is undefined`, bucketItem);
return;
}
out.files.push(name.replace(prefix, ""));
out.files.push(bucketItem.name.replace(prefix, ""));
}
});

Expand Down

0 comments on commit cbd3376

Please sign in to comment.