Skip to content

Commit 88de88b

Browse files
gigabojasnell
authored andcommitted
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: #4323 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9b21119 commit 88de88b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_http_outgoing.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ OutgoingMessage.prototype.end = function(data, encoding, callback) {
572572
var ret;
573573
if (data) {
574574
// Normal body write.
575-
ret = this.write(data, encoding);
575+
this.write(data, encoding);
576576
}
577577

578578
if (this._hasBody && this.chunkedEncoding) {

0 commit comments

Comments
 (0)