diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 43b5b43fc77a5e..ec4c9d363187ba 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -521,11 +521,7 @@ function onEofChunk(stream, state) { state.emittedReadable = true; // We have to emit readable now that we are EOF. Modules // in the ecosystem (e.g. dicer) rely on this event being sync. - if (state.ended) { - emitReadable_(stream); - } else { - process.nextTick(emitReadable_, stream); - } + emitReadable_(stream); } }