From 3625b09193d9673428e2b054f34c55551e1c12f7 Mon Sep 17 00:00:00 2001 From: Bo Borgerson Date: Wed, 16 Dec 2015 18:31:38 -0800 Subject: [PATCH] http: Remove an unnecessary assignment This just removes an assignment to `ret` of a value that's not used before it's overwritten. Immediately following the assigment is an `if/else` in which both branches assign to `ret` without using it. --- lib/_http_outgoing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js index 99fa8ff7238185..450975b72a1033 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -572,7 +572,7 @@ OutgoingMessage.prototype.end = function(data, encoding, callback) { var ret; if (data) { // Normal body write. - ret = this.write(data, encoding); + this.write(data, encoding); } if (this._hasBody && this.chunkedEncoding) {