Skip to content

Commit 0223de6

Browse files
mscdexjasnell
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: #5233 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b72dbdb commit 0223de6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/_http_outgoing.js

Lines changed: 1 addition & 2 deletions
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)