Skip to content

Commit f050b72

Browse files
committed
fixup: nit
1 parent efd93fb commit f050b72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/streams/end-of-stream.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ function eos(stream, opts, callback) {
8787
};
8888

8989
const onclose = () => {
90-
let err;
9190
if (readable && !readableEnded) {
9291
if (!isReadableEnded(stream))
9392
return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
@@ -96,7 +95,7 @@ function eos(stream, opts, callback) {
9695
if (!isWritableFinished(stream))
9796
return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE());
9897
}
99-
callback.call(stream, err);
98+
callback.call(stream);
10099
};
101100

102101
const onrequest = () => {

0 commit comments

Comments
 (0)