Please sign in to comment.
stream: simplify howMuchToRead()
This slightly refactors read by moving side effects out of howMuchToRead(). We don't actually have to set state.needReadable = true; in howMuchToRead() since read handles 0 return as needReadable. PR-URL: #29155 Reviewed-By: Matteo Collina <firstname.lastname@example.org> Reviewed-By: Rich Trott <email@example.com>
- Loading branch information...