Skip to content

Commit

Permalink
fixup: suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Mar 11, 2020
1 parent bed9a32 commit 1415464
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/internal/streams/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function isOutgoing(stream) {

function destroyer(stream, reading, writing, final, callback) {
const _destroy = once((err) => {
if (!err && ((isIncoming(stream) || isOutgoing(stream)))) {
if (!err && (isIncoming(stream) || isOutgoing(stream))) {
// http/1 request objects have a coupling to their response and should
// not be prematurely destroyed. Assume they will handle their own
// lifecycle.
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream-pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ const { promisify } = require('util');
const server = http.createServer((req, res) => {
req.socket.on('error', common.mustNotCall());
pipeline(req, new PassThrough(), (err) => {
assert(!err);
assert.ifError(err);
res.end();
server.close();
});
Expand Down

0 comments on commit 1415464

Please sign in to comment.