Skip to content

Commit

Permalink
fixup! stream: consolidate common code from readable push and unshift…
Browse files Browse the repository at this point in the history
… helper functions
  • Loading branch information
wa-Nadoo committed Oct 26, 2023
1 parent 337ba20 commit 8612f4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/streams/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ Readable.prototype.read = function(n) {

function onEofChunk(stream, state) {
debug('onEofChunk');
if ((state[kState] & kEnded) !== 0) return;
const decoder = (state[kState] & kDecoder) !== 0 ? state[kDecoderValue] : null;
if (decoder) {
const chunk = decoder.end();
Expand Down

0 comments on commit 8612f4a

Please sign in to comment.