From 48d97fabf1d604bdcf14b7cea5a926bcbb2b8a2f Mon Sep 17 00:00:00 2001 From: jtsmedley <38006759+jtsmedley@users.noreply.github.com> Date: Mon, 22 Jul 2024 09:57:09 -0500 Subject: [PATCH] Small Suggestion Changes --- packages/car/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/car/src/index.ts b/packages/car/src/index.ts index 0982e790..6af9dffd 100644 --- a/packages/car/src/index.ts +++ b/packages/car/src/index.ts @@ -195,7 +195,7 @@ class DefaultCar implements Car { void queue.add(async () => { await this.#walkDag(root, queue, async (cid, bytes) => { // check if duplicate blocks should be skipped - if (options.blockFilter != null) { + if (options?.blockFilter != null) { // skip blocks that have already been written if (options.blockFilter.has(cid.toString())) { return