Remove an redundant if clause in QuicSession::OnNewStreamFlowControlWindow().
This code is reached only in QUIC with QUIC crypto, thus !connection_->version().AllowsLowFlowControlLimits() is always true.
No behavior change. not protected.
PiperOrigin-RevId: 326341408
Change-Id: I0969f18acc73272d3b8dcfc153896a2eaca31e99
diff --git a/quic/core/quic_session.cc b/quic/core/quic_session.cc
index 59bf083..715b518 100644
--- a/quic/core/quic_session.cc
+++ b/quic/core/quic_session.cc
@@ -1348,8 +1348,7 @@
void QuicSession::OnNewStreamFlowControlWindow(QuicStreamOffset new_window) {
DCHECK(version().UsesQuicCrypto());
QUIC_DVLOG(1) << ENDPOINT << "OnNewStreamFlowControlWindow " << new_window;
- if (new_window < kMinimumFlowControlSendWindow &&
- !connection_->version().AllowsLowFlowControlLimits()) {
+ if (new_window < kMinimumFlowControlSendWindow) {
QUIC_LOG_FIRST_N(ERROR, 1)
<< "Peer sent us an invalid stream flow control send window: "
<< new_window << ", below minimum: " << kMinimumFlowControlSendWindow;