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

Commit

Permalink
perf(core): remove empty string check in parseChunkerString method
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Dan Ordille <dordille@gmail.com>
  • Loading branch information
dordille authored and alanshaw committed Aug 15, 2018
1 parent 5ddabd6 commit b8cf631
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,15 @@ const resolvePath = promisify(function (objectAPI, ipfsPaths, callback) {
*
*
* @param {String} chunker Chunker algorithm supported formats:
* "default" ("")
* "size-{size}",
* "size-{size}"
* "rabin"
* "rabin-{avg}"
* "rabin-{min}-{avg}-{max}"
*
* @return {Object} Chunker options for DAGBuilder
*/
function parseChunkerString (chunker) {
if (!chunker || chunker === '') {
if (!chunker) {
return {
chunker: 'fixed'
}
Expand Down

0 comments on commit b8cf631

Please sign in to comment.