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 rvagg committed Feb 15, 2016
1 parent 15091cc commit ed36235
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 ed36235

Please sign in to comment.