Skip to content

Commit

Permalink
lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ersan Bozduman committed Jul 24, 2024
1 parent 3a5b825 commit 72b2b07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
13 changes: 8 additions & 5 deletions Minio.Functional.Tests/FunctionalTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,25 +372,28 @@ internal static async Task BucketExists_Test(IMinioClient minio)

var found = await minio.BucketExistsAsync(beArgs).ConfigureAwait(false);
if (found)
throw(new Exception("BucketExistsAsync api failed to return false for a non-existing bucket"));
throw new Exception("BucketExistsAsync api failed to return false for a non-existing bucket");

await minio.MakeBucketAsync(mbArgs).ConfigureAwait(false);
found = await minio.BucketExistsAsync(beArgs).ConfigureAwait(false);

if (!found)
throw(new Exception("BucketExistsAsync api failed to return true for an existing bucket"));
throw new Exception("BucketExistsAsync api failed to return true for an existing bucket");

new MintLogger(nameof(BucketExists_Test), bucketExistsSignature, "Tests whether BucketExistsAsync api passes",
new MintLogger(nameof(BucketExists_Test), bucketExistsSignature,
"Tests whether BucketExistsAsync api passes",
TestStatus.PASS, DateTime.Now - startTime, args: args).Log();
}
catch (NotImplementedException ex)
{
new MintLogger(nameof(BucketExists_Test), bucketExistsSignature, "Tests whether BucketExistsAsync api passes",
new MintLogger(nameof(BucketExists_Test), bucketExistsSignature,
"Tests whether BucketExistsAsync api passes",
TestStatus.NA, DateTime.Now - startTime, ex.Message, ex.ToString(), args: args).Log();
}
catch (Exception ex)
{
new MintLogger(nameof(BucketExists_Test), bucketExistsSignature, "Tests whether BucketExistsAsync api passes",
new MintLogger(nameof(BucketExists_Test), bucketExistsSignature,
"Tests whether BucketExistsAsync api passes",
TestStatus.FAIL, DateTime.Now - startTime, ex.Message, ex.ToString(), args: args).Log();
throw;
}
Expand Down
5 changes: 3 additions & 2 deletions Minio/RequestExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ await requestMessageBuilder.ResponseWriter(responseResult.ContentStream, cancell
responseResult.Exception = ex;
throw;
}
else
responseResult = new ResponseResult(request, ex);

responseResult = new ResponseResult(request, ex);

return responseResult;
}
}
Expand Down

0 comments on commit 72b2b07

Please sign in to comment.