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 <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
9b21119e17
commit
88de88b5a6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user