Skip to content

Commit 755f117

Browse files
committed
fix(storage-sdk): remove duplicate parse and console.error
1 parent 8637466 commit 755f117

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.changeset/rare-brooms-invite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bunny.net/storage-sdk": patch
3+
---
4+
5+
Remove unseless double parse & console.error log

libs/bunny-storage/src/file.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,6 @@ export async function list(storageZone: StorageZone.StorageZone, path: string):
188188

189189
const j = await response.json();
190190

191-
try {
192-
StorageFileListing.parse(j);
193-
} catch (e) {
194-
console.error(e);
195-
}
196-
197191
return StorageFileListing.parse(j).map(result => ({
198192
_tag: "StorageFile",
199193
guid: result.Guid,

0 commit comments

Comments
 (0)