Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: avoid throw error when use readme code (#2934)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Mar 24, 2020
1 parent 5abaebc commit b18f6e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/interface-ipfs-core/SPEC/FILES.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ const cid = 'QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF'

for await (const file of ipfs.get(cid)) {
console.log(file.path)

if (!file.content) continue;

const content = new BufferList()
for await (const chunk of file.content) {
Expand Down

0 comments on commit b18f6e1

Please sign in to comment.