Skip to content

Fix unused variable warning. #79

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

Closed
wants to merge 1 commit into from

Conversation

casperisfine
Copy link

Looking at the code, it looks like it caught an actual bug.

protocol-http-0.47.1/lib/protocol/http/body/stream.rb:263: warning: assigned but unused variable - buffer

Looking at the code, it looks like it caught an actual bug.

```
protocol-http-0.47.1/lib/protocol/http/body/stream.rb:263: warning: assigned but unused variable - buffer
```
@ioquatix
Copy link
Member

Oh, this does look pretty gnarly, let me write some tests.

@ioquatix ioquatix mentioned this pull request Apr 28, 2025
3 tasks
@ioquatix
Copy link
Member

Thanks for your report and proposed fix. It required a little more finesse + some tests in #80.

@ioquatix ioquatix closed this Apr 28, 2025
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