From 136a563c73df8ab1af72fc3c0e78c8a98d613eed Mon Sep 17 00:00:00 2001 From: Ersan Bozduman Date: Fri, 26 Jul 2024 02:25:45 -0700 Subject: [PATCH] review changes --- Minio/RequestExtensions.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Minio/RequestExtensions.cs b/Minio/RequestExtensions.cs index 8792d3403..60a1eea4a 100644 --- a/Minio/RequestExtensions.cs +++ b/Minio/RequestExtensions.cs @@ -143,16 +143,7 @@ await requestMessageBuilder.ResponseWriter(responseResult.ContentStream, cancell { if (ex.Message.Equals("ThrowBucketNotFoundException", StringComparison.Ordinal)) throw new BucketNotFoundException(); - - if (responseResult is not null) - { - responseResult.Exception = ex; - throw; - } - - responseResult = new ResponseResult(request, ex); - - return responseResult; + throw; } }