Skip to content

Commit 0bfda32

Browse files
committed
fix: make 'seen' option for walk() optional
1 parent 2bd8878 commit 0bfda32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traversal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { base58btc } from 'multiformats/bases/base58'
1414
* @param {Object} options
1515
* @param {CID} options.cid
1616
* @param {(cid: CID) => Promise<Block<T>|null>} options.load
17-
* @param {Set<string>?} options.seen
17+
* @param {Set<string>} [options.seen]
1818
*/
1919
const walk = async ({ cid, load, seen }) => {
2020
seen = seen || new Set()

0 commit comments

Comments
 (0)