mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #1138] Remove redundant stream field in AsyncOnlyStream #1573
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?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/1138
State: closed
Merged: Yes
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.