mirror of
https://github.com/openharmony/third_party_rust_hyper.git
synced 2026-07-19 13:54:29 -04:00
8999a22417
- Since the `if` condition already causes the loop to `break`, the `else` is not necessary. We wouldn't have reached the `else` block, anyway, if the prior `if` condition passed. - We are more likely to poll a successful chunk than finish the request or throw an error. Thus, it is best if we go for the optimistic route and check for the successful case first.