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: #5233
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and Myles Borins committed Mar 21, 2016
1 parent 46a5d51 commit ca5d7a8
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 @@ -493,8 +493,7 @@ function writeAfterEndNT(self, err, callback) {


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


Expand Down

0 comments on commit ca5d7a8

Please sign in to comment.