Skip to content

Commit

Permalink
Address IDE0038. Use pattern matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Sep 1, 2023
1 parent 8666e23 commit c8c253a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Orleans.Serialization/Buffers/Writer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ public void Dispose()
{
if (typeof(TBufferWriter).IsValueType)
{
if (Output is IDisposable)
if (Output is IDisposable disposable)
{
((IDisposable)Output).Dispose();
disposable.Dispose();
}
}
else
Expand Down

0 comments on commit c8c253a

Please sign in to comment.