diff options
author | Jeremy Evans <code@jeremyevans.net> | 2023-01-22 11:46:37 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2023-01-22 11:46:37 -0800 |
commit | 3c1e0ff093d98356b084d797abc36f80feeb61f8 (patch) | |
tree | 6890ca1c01e8bbb66f528e95aef6ba37e51a4277 | |
parent | 8193ddb494c53cf656cee233e5faa4f12d657230 (diff) | |
download | rack-3c1e0ff093d98356b084d797abc36f80feeb61f8.tar.gz |
Fix some unused variable verbose warnings
-rw-r--r-- | lib/rack/sendfile.rb | 2 | ||||
-rw-r--r-- | test/spec_lint.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/sendfile.rb b/lib/rack/sendfile.rb index 45f0a8c3..9c6e0c42 100644 --- a/lib/rack/sendfile.rb +++ b/lib/rack/sendfile.rb @@ -111,7 +111,7 @@ module Rack end def call(env) - status, headers, body = response = @app.call(env) + _, headers, body = response = @app.call(env) if body.respond_to?(:to_path) case type = variation(env) diff --git a/test/spec_lint.rb b/test/spec_lint.rb index f7e5852a..1f8a19fc 100644 --- a/test/spec_lint.rb +++ b/test/spec_lint.rb @@ -482,7 +482,7 @@ describe Rack::Lint do def body.to_path; __FILE__ end app = lambda { |env| [200, {}, body] } - status, headers, body = Rack::Lint.new(app).call(env({})) + body = Rack::Lint.new(app).call(env({}))[2] body.must_respond_to(:to_path) body.to_path.must_equal __FILE__ end |