Skip to content

Commit 1415464

Browse files
committed
fixup: suggestions
1 parent bed9a32 commit 1415464

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/streams/pipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function isOutgoing(stream) {
4343

4444
function destroyer(stream, reading, writing, final, callback) {
4545
const _destroy = once((err) => {
46-
if (!err && ((isIncoming(stream) || isOutgoing(stream)))) {
46+
if (!err && (isIncoming(stream) || isOutgoing(stream))) {
4747
// http/1 request objects have a coupling to their response and should
4848
// not be prematurely destroyed. Assume they will handle their own
4949
// lifecycle.

test/parallel/test-stream-pipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ const { promisify } = require('util');
10161016
const server = http.createServer((req, res) => {
10171017
req.socket.on('error', common.mustNotCall());
10181018
pipeline(req, new PassThrough(), (err) => {
1019-
assert(!err);
1019+
assert.ifError(err);
10201020
res.end();
10211021
server.close();
10221022
});

0 commit comments

Comments
 (0)