Skip to content

Commit 20ff2b1

Browse files
committed
ipos: format files with biome
1 parent 5a3c2e5 commit 20ff2b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/ipos/src/routes/pinning.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ app.post('/pinFile', vValidator('form', pinFileRequestSchema), async (c) => {
9191
},
9292
})
9393

94-
const promises: Promise<R2Object | null>[] = []
94+
const promises: Promise<R2Object | null>[] = []
9595
for (const { file } of files) {
9696
const path = `${cid}/${file.name}`
9797
promises.push(c.env.BUCKET.put(keyOf(path), file))

services/ipos/src/utils/format.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function getObjectSize(obj: Record<string, unknown>) {
1212
}
1313

1414
export async function hashOf(content: ImportContent | string): Promise<CID> {
15-
// note: generating the hash.of from cid v1 and then converting it to cid v0 generates a wrong cid with big file sizes
15+
// note: generating the hash.of from cid v1 and then converting it to cid v0 generates a wrong cid with big file sizes
1616
return CID.parse(await Hash.of(content, { onlyHash: true, cidVersion: 0 }))
1717
}
1818

0 commit comments

Comments
 (0)