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: https://github.com/nodejs/node/pull/5233
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Brian White 2016-02-15 04:47:06 -05:00 committed by James M Snell
parent b72dbdbe43
commit 0223de6ba5

View File

@ -489,8 +489,7 @@ function writeAfterEndNT(self, err, callback) {
function connectionCorkNT(conn) { function connectionCorkNT(conn) {
if (conn) conn.uncork();
conn.uncork();
} }