From 88de88b5a6289ff4f56d13b6b4e11759945f2177 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. PR-URL: https://github.com/nodejs/node/pull/4323 Reviewed-By: Colin Ihrig Reviewed-By: Brian White Reviewed-By: James M Snell --- 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 99fa8ff723..450975b72a 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) {