From ed362352482bf01a204b55384bb00aa95c3a2ade Mon Sep 17 00:00:00 2001 From: Brian White Date: Mon, 15 Feb 2016 04:47:06 -0500 Subject: [PATCH] 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 --- lib/_http_outgoing.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js index 69c20557130616..77f0b8f9e63125 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -489,8 +489,7 @@ function writeAfterEndNT(self, err, callback) { function connectionCorkNT(conn) { - if (conn) - conn.uncork(); + conn.uncork(); }