-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to simple using statements #73632
Conversation
3e29648
to
9783a30
Compare
using (var stream = SerializableBytes.CreateWritableStream()) | ||
using var stream = SerializableBytes.CreateWritableStream(); | ||
using (var gzipStream = new GZipStream(stream, CompressionLevel.Optimal, leaveOpen: true)) | ||
using (var writer = new ObjectWriter(gzipStream, leaveOpen: true)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did these two get missed?
@@ -98,10 +98,8 @@ public void TestZeroLengthStreams() | |||
handle = service.WriteToTemporaryStorage(stream1, CancellationToken.None); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would change semantics, moving where the Dispose is called during program execution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a smart fixer!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.