Browse Source

Use `await using` where available

pull/2488/head
Simona Koníčková 3 years ago
parent
commit
c81e639842
  1. 2
      tests/ImageSharp.Tests/IO/LocalFileSystemTests.cs

2
tests/ImageSharp.Tests/IO/LocalFileSystemTests.cs

@ -91,7 +91,7 @@ public class LocalFileSystemTests
LocalFileSystem fs = new();
await using (Stream stream = fs.CreateAsynchronous(path))
using (StreamWriter writer = new(stream))
await using (StreamWriter writer = new(stream))
{
await writer.WriteAsync(testData);
}

Loading…
Cancel
Save