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

Commit

Permalink
fix: remove optional chaining (#122)
Browse files Browse the repository at this point in the history
It's not supported in some environments - jest, etc.
  • Loading branch information
achingbrain authored Jul 30, 2021
1 parent 1f574f1 commit 242dc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/migration-9/pin-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function storeItems (blockstore, items) {

await blockstore.put(cid, buf)

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

fanoutLinks[binIdx] = {
Name: '',
Expand Down

0 comments on commit 242dc8e

Please sign in to comment.