Skip to content

Commit 44ee6c2

Browse files
Trottnodejs-github-bot
authored andcommitted
stream: call done() in consistent fashion
All three `destroy()` functions defined in adapter.js contain a `done()` function that takes no arguments. In one instance, however, an argument is nonetheless passed. Remove it for consistency. PR-URL: #39475 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Evan Lucas <evanlucas@me.com>
1 parent f6b2893 commit 44ee6c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/webstreams/adapters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ function newStreamReadableFromReadableStream(readableStream, options = {}) {
491491
done);
492492
return;
493493
}
494-
done(error);
494+
done();
495495
},
496496
});
497497

0 commit comments

Comments
 (0)