Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Minio/ApiEndpoints/BucketOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ public async Task<bool> BucketExistsAsync(BucketExistsArgs args, CancellationTok
using var response =
await this.ExecuteTaskAsync(ResponseErrorHandlers, requestMessageBuilder,
cancellationToken: cancellationToken).ConfigureAwait(false);
return response is not null &&
(response.Exception is null ||
response.Exception.GetType() != typeof(BucketNotFoundException));

return response?.Exception != null ? throw response.Exception : response is not null;
}
catch (InternalClientException ice)
{
Expand Down