From: Brian White Date: Mon, 15 Feb 2016 09:47:06 +0000 (-0500) Subject: http: remove unnecessary check X-Git-Tag: v4.4.1~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca5d7a8bb62feb9c6fdbb4f16c40a0c2598b00d4;p=platform%2Fupstream%2Fnodejs.git 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 Reviewed-By: James M Snell --- diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js index 47c6f93..654e85a 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -493,8 +493,7 @@ function writeAfterEndNT(self, err, callback) { function connectionCorkNT(conn) { - if (conn) - conn.uncork(); + conn.uncork(); }