Skip to content

Remove redundant stream field in AsyncOnlyStream#1138

Merged
adamhathcock merged 2 commits intoadam/async-creationfrom
copilot/sub-pr-1132
Jan 16, 2026
Merged

Remove redundant stream field in AsyncOnlyStream#1138
adamhathcock merged 2 commits intoadam/async-creationfrom
copilot/sub-pr-1132

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

AsyncOnlyStream was storing the wrapped stream in both a private _stream field and the base class's Stream property, creating maintenance issues and unnecessary redundancy.

Changes

  • Removed _stream field - use inherited Stream property from SharpCompressStream
  • Simplified Dispose() 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.

…am property

Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP Address feedback on async creation cleanup PR Remove redundant stream field in AsyncOnlyStream Jan 16, 2026
Copilot AI requested a review from adamhathcock January 16, 2026 09:38
@adamhathcock adamhathcock marked this pull request as ready for review January 16, 2026 09:38
@adamhathcock adamhathcock merged commit 5336eb6 into adam/async-creation Jan 16, 2026
@adamhathcock adamhathcock deleted the copilot/sub-pr-1132 branch January 16, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments