| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
CL.This change makes the runtime flag actually take effect by:```suggestion
CL. This change makes the runtime flag actually take effect by:
```
UpdatingBidirectionalStream'sconstructor, Init(), and```suggestion
UpdatingBidirectionalStream's constructor, Init(), and
```
GetIncomingStream() toconstruct and dispatch to```suggestion
GetIncomingStream() to construct and dispatch to
```
if (RuntimeEnabledFeatures::WebTransportReceiveStreamEnabled(
ExecutionContext::From(script_state_))) {
auto* s = MakeGarbageCollected<WebTransportReceiveStream>(
script_state_, web_transport_, stream_id, std::move(readable));
s->Init(PassThroughException(isolate));
stream_to_enqueue = s;
incoming_stream = s->GetIncomingStream();
} else {
auto* s = MakeGarbageCollected<ReceiveStream>(
script_state_, web_transport_, stream_id, std::move(readable));
s->Init(PassThroughException(isolate));
stream_to_enqueue = s;
incoming_stream = s->GetIncomingStream();
}nit: We can reduce code duplication:
```suggestion
auto init_stream = [&](auto* s) {
s->Init(PassThroughException(isolate));
stream_to_enqueue = s;
incoming_stream = s->GetIncomingStream();
};
if (RuntimeEnabledFeatures::WebTransportReceiveStreamEnabled(
ExecutionContext::From(script_state_))) {
init_stream(MakeGarbageCollected<WebTransportReceiveStream>(
script_state_, web_transport_, stream_id, std::move(readable)));
} else {
init_stream(MakeGarbageCollected<ReceiveStream>(
script_state_, web_transport_, stream_id, std::move(readable)));
}
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CL.This change makes the runtime flag actually take effect by:```suggestion
CL. This change makes the runtime flag actually take effect by:
```
Marked as resolved.
```suggestion
UpdatingBidirectionalStream's constructor, Init(), and
```
Marked as resolved.
```suggestion
GetIncomingStream() to construct and dispatch to
```
Marked as resolved.
if (RuntimeEnabledFeatures::WebTransportReceiveStreamEnabled(
ExecutionContext::From(script_state_))) {
auto* s = MakeGarbageCollected<WebTransportReceiveStream>(
script_state_, web_transport_, stream_id, std::move(readable));
s->Init(PassThroughException(isolate));
stream_to_enqueue = s;
incoming_stream = s->GetIncomingStream();
} else {
auto* s = MakeGarbageCollected<ReceiveStream>(
script_state_, web_transport_, stream_id, std::move(readable));
s->Init(PassThroughException(isolate));
stream_to_enqueue = s;
incoming_stream = s->GetIncomingStream();
}nit: We can reduce code duplication:
```suggestion
auto init_stream = [&](auto* s) {
s->Init(PassThroughException(isolate));
stream_to_enqueue = s;
incoming_stream = s->GetIncomingStream();
};if (RuntimeEnabledFeatures::WebTransportReceiveStreamEnabled(
ExecutionContext::From(script_state_))) {
init_stream(MakeGarbageCollected<WebTransportReceiveStream>(
script_state_, web_transport_, stream_id, std::move(readable)));
} else {
init_stream(MakeGarbageCollected<ReceiveStream>(
script_state_, web_transport_, stream_id, std::move(readable)));
}
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |