From ca5d7a8bb62feb9c6fdbb4f16c40a0c2598b00d4 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 47c6f93e99b277..654e85a34b3fd9 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(); }