Skip to content

Commit

Permalink
remove unnecessary check (#2432)
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari authored Mar 20, 2023
1 parent 7aa2970 commit 76622e4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/bun.js/webcore/streams.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2356,9 +2356,6 @@ pub fn HTTPServerWritable(comptime ssl: bool) type {
}

fn send(this: *@This(), buf: []const u8) bool {
// send is a no-op when already aborted
if (this.aborted) return false;

std.debug.assert(!this.done);
defer log("send: {d} bytes (backpressure: {any})", .{ buf.len, this.has_backpressure });

Expand Down

0 comments on commit 76622e4

Please sign in to comment.