From bae2fffa147057916252c7859c80b940e21aaa71 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Tue, 12 Sep 2023 13:39:56 -0400 Subject: [PATCH] Remove redundant branch --- rust-runtime/aws-smithy-client/src/hyper_ext.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/rust-runtime/aws-smithy-client/src/hyper_ext.rs b/rust-runtime/aws-smithy-client/src/hyper_ext.rs index 6eee6a4f612..c5906fdb341 100644 --- a/rust-runtime/aws-smithy-client/src/hyper_ext.rs +++ b/rust-runtime/aws-smithy-client/src/hyper_ext.rs @@ -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::(&err) { if h2_err.is_go_away() || (h2_err.is_reset() && h2_err.reason() == Some(Reason::REFUSED_STREAM))