summaryrefslogtreecommitdiff
path: root/lib/_http_outgoing.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2016-02-15 04:47:06 -0500
committerJames M Snell <jasnell@gmail.com>2016-02-15 07:52:17 -0800
commit0223de6ba57c8dcac7680ebf62a9ee6e2c037b42 (patch)
tree7bc1319a3b74d632ff6a4017db261303a129e9d4 /lib/_http_outgoing.js
parentb72dbdbe430ef83c73cf535bc0dabdba2a64b352 (diff)
downloadandroid-node-v8-0223de6ba57c8dcac7680ebf62a9ee6e2c037b42.tar.gz
android-node-v8-0223de6ba57c8dcac7680ebf62a9ee6e2c037b42.tar.bz2
android-node-v8-0223de6ba57c8dcac7680ebf62a9ee6e2c037b42.zip
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>
Diffstat (limited to 'lib/_http_outgoing.js')
-rw-r--r--lib/_http_outgoing.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js
index 56228f5139..ec5e078412 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();
}