Skip to content

Commit

Permalink
Update packages/blob-index/src/sharded-dag-index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
gammazero and Alan Shaw authored May 9, 2024
1 parent f2abe16 commit e1ea5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blob-index/src/sharded-dag-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const extract = async (archive) => {
)

const header = await reader.getHeader()
if (header.roots[0].code !== dagCBOR.code) {
if (header.roots[0]?.code !== dagCBOR.code) {
return error(
/** @type {import('@web3-storage/capabilities/types').UnknownFormat} */
({ name: 'UnknownFormat' })
Expand Down

0 comments on commit e1ea5ca

Please # to comment.