-
Notifications
You must be signed in to change notification settings - Fork 500
Removed wrappers that weren't needed (probably) #959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # src/SharpCompress/Compressors/Xz/XZIndex.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes wrapper usage by replacing SharpCompressStream.Create(stream, leaveOpen: true) with direct stream usage in BinaryReader constructors across XZ compression components.
- Simplified BinaryReader instantiation by removing SharpCompressStream wrapper
- Updated three XZ component classes to use direct stream access
- Maintained the same leaveOpen behavior using BinaryReader's leaveOpen parameter
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/SharpCompress/Compressors/Xz/XZIndex.cs | Removed SharpCompressStream wrapper in FromStream method |
| src/SharpCompress/Compressors/Xz/XZHeader.cs | Removed SharpCompressStream wrapper in FromStream method |
| src/SharpCompress/Compressors/Xz/XZFooter.cs | Removed SharpCompressStream wrapper in FromStream method |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Found while doing #958