Skip to content

Commit 0a6c61d

Browse files
mscdexstefanmb
authored andcommitted
http: remove unnecessary check
The value passed to `process.nextTick()` which is passed to the callback is already a valid object, so the conditional will always evaluate to true. PR-URL: nodejs#5233 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8990362 commit 0a6c61d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/_http_outgoing.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,7 @@ function writeAfterEndNT(self, err, callback) {
489489

490490

491491
function connectionCorkNT(conn) {
492-
if (conn)
493-
conn.uncork();
492+
conn.uncork();
494493
}
495494

496495

0 commit comments

Comments
 (0)