Skip to content

Commit

Permalink
http: Remove an unnecessary assignment
Browse files Browse the repository at this point in the history
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: #4323
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
gigabo authored and jasnell committed Dec 17, 2015
1 parent 9b21119 commit 88de88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_outgoing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 88de88b

Please sign in to comment.