mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #1138] [MERGED] Remove redundant stream field in AsyncOnlyStream #1570
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/1138
Author: @Copilot
Created: 1/16/2026
Status: ✅ Merged
Merged: 1/16/2026
Merged by: @adamhathcock
Base:
adam/async-creation← Head:copilot/sub-pr-1132📝 Commits (2)
bbbbc88Initial plan2012077Remove redundant _stream field from AsyncOnlyStream and use base Stream property📊 Changes
1 file changed (+13 additions, -20 deletions)
View changed files
📝
tests/SharpCompress.Test/Mocks/AsyncOnlyStream.cs(+13 -20)📄 Description
AsyncOnlyStreamwas storing the wrapped stream in both a private_streamfield and the base class'sStreamproperty, creating maintenance issues and unnecessary redundancy.Changes
_streamfield - use inheritedStreamproperty fromSharpCompressStreamDispose()to delegate to base class (already handles stream disposal)This eliminates dual ownership while maintaining identical behavior.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.