Skip to content

Commit

Permalink
Remove redundant branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed Sep 12, 2023
1 parent 8010368 commit bae2fff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rust-runtime/aws-smithy-client/src/hyper_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,6 @@ fn to_connector_error(err: hyper::Error) -> ConnectorError {
if err.is_incomplete_message() {
return ConnectorError::other(err.into(), Some(ErrorKind::TransientError));
}
if err.is_closed() {
return ConnectorError::io(err.into());
}
if let Some(h2_err) = find_source::<h2::Error>(&err) {
if h2_err.is_go_away()
|| (h2_err.is_reset() && h2_err.reason() == Some(Reason::REFUSED_STREAM))
Expand Down

0 comments on commit bae2fff

Please sign in to comment.