ipfs-inactive / js-ipfs-unixfs-importer

[ARCHIVED] JavaScript implementation of the UnixFs importer used by IPFS
MIT License
5 stars 4 forks source link

fix: turn non-function progress callback into a noop #16

Closed achingbrain closed 5 years ago

achingbrain commented 5 years ago

I figure this is a better fix than #14 because we only do the check once up front instead of for each chunk, and any decent optimising compiler should be able to strip out the noop invocation.

achingbrain commented 5 years ago

Released as v0.38.1