Skip to content

Commit

Permalink
assertion should be looser
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Jun 12, 2024
1 parent 6003501 commit 7454cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = class Writer extends ReadyResource {
}

reset (length) {
assert(length <= this.core.length)
assert(length <= this.core.length || length <= this.length)

this.pause()

Expand Down

0 comments on commit 7454cc0

Please sign in to comment.