-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
- Version: master
- Platform: all
- Subsystem: stream
In lib/_streams_readable.js, we have a block of code like this:
(state.length < state.highWaterMark ||
state.length === 0);Because state.highWaterMark could be < 0 or null or undefined or really any object in Node < 10. However, we landed #18098 and so now we can simplify all those checks to be state.length <= state.highWaterMark.
Metadata
Metadata
Assignees
Labels
good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.