Skip to content

Commit 5aae6fc

Browse files
committed
Simplify 'ReadOnlySequenceStream.Dispose()'
1 parent b8aa65a commit 5aae6fc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/CommunityToolkit.HighPerformance/Streams/ReadOnlySequenceStream.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,6 @@ public sealed override void WriteByte(byte value)
298298
/// <inheritdoc/>
299299
protected override void Dispose(bool disposing)
300300
{
301-
if (this.disposed)
302-
{
303-
return;
304-
}
305-
306301
this.disposed = true;
307302
}
308303
}

0 commit comments

Comments
 (0)