Skip to content

Conversation

@nhz2
Copy link
Member

@nhz2 nhz2 commented Mar 30, 2024

From what I can tell the # directly read data from the underlying stream branch is unreachable, so this method is the same as the generic one for TranscodingStream.

This PR also removes a redundant call to eof from Base.unsafe_read(stream::TranscodingStream:
To exit the while loop with p < p_end true, eof(stream) must have returned true on line 397. So there is no reason to check eof again on line 403.

@nhz2 nhz2 marked this pull request as ready for review March 30, 2024 03:35
@nhz2 nhz2 requested a review from vtjnash March 30, 2024 18:01
Copy link
Contributor

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. I am no expert though in that. The removal of the eof seems like a bugfix, so may be worth mentioning that in the PR too?

@nhz2 nhz2 merged commit e81cd34 into master Mar 30, 2024
@nhz2 nhz2 deleted the nz/remove-dead-code branch March 30, 2024 18:52
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.

3 participants