Skip to content

Commit ca5d7a8

Browse files
mscdexMyles Borins
authored and
Myles Borins
committed
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 46a5d51 commit ca5d7a8

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
@@ -493,8 +493,7 @@ function writeAfterEndNT(self, err, callback) {
493493

494494

495495
function connectionCorkNT(conn) {
496-
if (conn)
497-
conn.uncork();
496+
conn.uncork();
498497
}
499498

500499

0 commit comments

Comments
 (0)