Skip to content

Commit 3ff2373

Browse files
gigaboMyles Borins
authored and
Myles Borins
committed
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 <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 8ce6843 commit 3ff2373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_http_outgoing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ OutgoingMessage.prototype.end = function(data, encoding, callback) {
560560
var ret;
561561
if (data) {
562562
// Normal body write.
563-
ret = this.write(data, encoding);
563+
this.write(data, encoding);
564564
}
565565

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

0 commit comments

Comments
 (0)