Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 242dc8e

Browse files
authored
fix: remove optional chaining (#122)
It's not supported in some environments - jest, etc.
1 parent 1f574f1 commit 242dc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrations/migration-9/pin-set.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function storeItems (blockstore, items) {
237237

238238
await blockstore.put(cid, buf)
239239

240-
let size = child.Links.reduce((acc, curr) => acc + (curr?.Tsize || 0), 0) + buf.length
240+
let size = child.Links.reduce((acc, curr) => acc + (curr.Tsize || 0), 0) + buf.length
241241

242242
fanoutLinks[binIdx] = {
243243
Name: '',

0 commit comments

Comments
 (0)