Skip to content

Commit

Permalink
quic: fix cpp formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Sep 15, 2023
1 parent 4c2d4c9 commit 14abeb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/quic/streams.cc
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ void Stream::BeginHeaders(HeadersKind kind) {
bool Stream::AddHeader(const Header& header) {
size_t len = header.length();
if (is_destroyed() || !session_->application().CanAddHeader(
headers_.size(), headers_length_, len)) {
headers_.size(), headers_length_, len)) {
return false;
}

Expand Down Expand Up @@ -1037,7 +1037,8 @@ void Stream::EmitWantTrailers() {

void Stream::Schedule(Stream::Queue* queue) {
// If this stream is not already in the queue to send data, add it.
if (!is_destroyed() && outbound_ && stream_queue_.IsEmpty()) queue->PushBack(this);
if (!is_destroyed() && outbound_ && stream_queue_.IsEmpty())
queue->PushBack(this);
}

void Stream::Unschedule() {
Expand Down

0 comments on commit 14abeb3

Please sign in to comment.