Skip to content

Commit 70538f5

Browse files
authored
Merge pull request #68 from BunnyWay/fix-storage-list
fix: Remove unnecessary double parse and console.error in storage list function
2 parents 8637466 + 755f117 commit 70538f5

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)