Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: restore null guard
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Sep 23, 2020
1 parent 8bae148 commit d0aee45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ipfs-core/src/components/add-all/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ module.exports = ({ block, gcLock, preload, pin, options: constructorOptions })
* @type {AddAll<{}>}
*/
async function * addAll (source, options) {
options = options || {}
const opts = mergeOptions({
shardSplitThreshold: isShardingEnabled ? 1000 : Infinity,
strategy: 'balanced',
...parseChunkerString(options.chunker)
}, options || {})
}, options)

// CID v0 is for multihashes encoded with sha2-256
if (opts.hashAlg && opts.hashAlg !== 'sha2-256' && opts.cidVersion !== 1) {
Expand Down

0 comments on commit d0aee45

Please sign in to comment.