Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/utils/src/pins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
const pinKey = toDSKey(cid)

if (await this.datastore.has(pinKey)) {
throw new Error('Already pinned')
yield cid
return

Check warning on line 79 in packages/utils/src/pins.ts

View check run for this annotation

Codecov / codecov/patch

packages/utils/src/pins.ts#L78-L79

Added lines #L78 - L79 were not covered by tests
}

const depth = Math.round(options.depth ?? Infinity)
Expand Down
Loading