Skip to content

Commit

Permalink
http: remove unnecessary check
Browse files Browse the repository at this point in the history
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 <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and stefanmb committed Feb 23, 2016
1 parent 8990362 commit 0a6c61d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/_http_outgoing.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,7 @@ function writeAfterEndNT(self, err, callback) {


function connectionCorkNT(conn) {
if (conn)
conn.uncork();
conn.uncork();
}


Expand Down

0 comments on commit 0a6c61d

Please sign in to comment.