Skip to content

Commit a71efd5

Browse files
committed
quic: remove debug code and formatting
1 parent c032a74 commit a71efd5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/quic/session.cc‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,9 +1171,11 @@ struct Session::Impl final : public MemoryRetainer {
11711171
DCHECK(args[1]->IsBoolean());
11721172

11731173
auto direction = FromV8Value<Direction>(args[0]);
1174-
if (!args[1].As<v8::Boolean>()->Value() && false) { // This is waitUntilAvailable
1174+
if (!args[1].As<v8::Boolean>()->Value()) { // This is waitUntilAvailable
11751175
if (!session->CanImmediatelyOpenStream(direction)) {
1176-
return THROW_ERR_INVALID_STATE(env, "No new stream available within flow control");
1176+
return THROW_ERR_INVALID_STATE(env,
1177+
"No new stream available within flow control"
1178+
);
11771179
}
11781180
}
11791181

@@ -3539,7 +3541,7 @@ uint64_t Session::max_local_streams_uni() const {
35393541

35403542
uint64_t Session::max_local_streams_bidi() const {
35413543
DCHECK(!is_destroyed());
3542-
return ngtcp2_conn_get_streams_bidi_left2(*this);
3544+
return ngtcp2_conn_get_streams_bidi_left2(*this);
35433545
}
35443546

35453547
void Session::set_wrapped() {

0 commit comments

Comments
 (0)