Skip to content

Commit

Permalink
uses 'Dispose' instead of 'using'
Browse files Browse the repository at this point in the history
  • Loading branch information
ebozduman committed Jun 14, 2023
1 parent db9e927 commit 9d47735
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Minio.Functional.Tests/FunctionalTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4942,8 +4942,9 @@ internal static async Task GetObject_AsyncCallback_Test1(MinioClient minio)

var callbackAsync = async (Stream stream, CancellationToken cancellationToken) =>
{
using var dest = new FileStream(destFileName, FileMode.Create, FileAccess.Write);
var dest = new FileStream(destFileName, FileMode.Create, FileAccess.Write);
await stream.CopyToAsync(dest, cancellationToken).ConfigureAwait(false);
await dest.DisposeAsync();
};

var getObjectArgs = new GetObjectArgs()
Expand Down

0 comments on commit 9d47735

Please sign in to comment.