Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: fix linting
  • Loading branch information
achingbrain committed May 4, 2020
commit 2040f74b97893d43fa14a5ec33ae1f24ea05d199
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ class BlockService {
deleteMany (cids, options) {
const repo = this._repo

return this._repo.blocks.deleteMany(async function * () {
return this._repo.blocks.deleteMany((async function * () {
for await (const cid of cids) {
if (!await repo.blocks.has(cid)) {
throw errcode(new Error('blockstore: block not found'), 'ERR_BLOCK_NOT_FOUND')
}

yield cid
}
}(), options)
}()), options)
}
}

Expand Down