Skip to content

bug: rabin chunker errors when no options are passed #339

Closed
@SgtPooki

Description

@SgtPooki

calling rabin() throws an error, Error: please specify an average chunk size

if (options.avgChunkSize == null && options.minChunkSize == null && options.maxChunkSize == null) {
throw errcode(new Error('please specify an average chunk size'), 'ERR_INVALID_AVG_CHUNK_SIZE')
}

options are all optional, and there is a default AVG chunk size, so we should not be erroring here, or we should have better enforced types.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions