Skip to content

Commit

Permalink
Remove semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsmedley committed Jun 12, 2024
1 parent 1a5b288 commit c626c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/car/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class DefaultCar implements Car {
async export (root: CID | CID[], writer: Pick<CarWriter, 'put' | 'close'>, options?: AbortOptions & ProgressOptions<GetBlockProgressEvents>): Promise<void> {
const deferred = defer<Error | undefined>()
const roots = Array.isArray(root) ? root : [root]
const writtenBlocks = new Set();
const writtenBlocks = new Set()

// use a queue to walk the DAG instead of recursion so we can traverse very large DAGs
const queue = new PQueue({
Expand All @@ -192,7 +192,7 @@ class DefaultCar implements Car {
await this.#walkDag(root, queue, async (cid, bytes) => {
// skip blocks that have already been written
if (writtenBlocks.has(cid.toString())) {
return;
return
}
writtenBlocks.add(cid.toString())
await writer.put({ cid, bytes })
Expand Down

0 comments on commit c626c1f

Please sign in to comment.