Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jul 25, 2021
1 parent 673720d commit cc1d756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function consume (self, type) {
throw new TypeError('disturbed')
}

if (self.locked) {
if (self[kBody]) {
throw new TypeError('locked')
}

Expand Down

0 comments on commit cc1d756

Please sign in to comment.