Skip to content

Commit 79b4f05

Browse files
byrootioquatix
authored andcommitted
Fix unused variable warnings
``` async-http-0.86.0/lib/async/http/protocol/http1/server.rb:55: warning: assigned but unused variable - error async-http-0.86.0/lib/async/http/protocol/http2/connection.rb:99: warning: assigned but unused variable - ignored_error ```
1 parent 07cfd2e commit 79b4f05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/async/http/protocol/http1/server.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def next_request
5252
end
5353

5454
return request
55-
rescue ::Protocol::HTTP1::BadRequest => error
55+
rescue ::Protocol::HTTP1::BadRequest
5656
fail_request(400)
5757
# Conceivably we could retry here, but we don't really know how bad the error is, so it's better to just fail:
5858
raise

lib/async/http/protocol/http2/connection.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def read_in_background(parent: Task.current)
9494
# Error is raised if a response is actively reading from the
9595
# connection. The connection is silently closed if GOAWAY is
9696
# received outside the request/response cycle.
97-
rescue SocketError, IOError, EOFError, Errno::ECONNRESET, Errno::EPIPE => ignored_error
97+
rescue SocketError, IOError, EOFError, Errno::ECONNRESET, Errno::EPIPE
9898
# Ignore.
9999
rescue => error
100100
# Every other error.

0 commit comments

Comments
 (0)