Skip to content
This repository
Browse code

Remove warnings: 'not used variable' and 'shadowing outer variable'

  • Loading branch information...
commit 3b3b285608f3453579e6f8e7e27b71b6afd77898 1 parent ebc5a93
Carlos Antonio da Silva carlosantoniodasilva authored

Showing 2 changed files with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +0 1  lib/rack/utils.rb
  2. +1 1  test/spec_lock.rb
1  lib/rack/utils.rb
@@ -5,7 +5,6 @@
5 5 require 'rack/multipart'
6 6
7 7 major, minor, patch = RUBY_VERSION.split('.').map { |v| v.to_i }
8   -ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
9 8
10 9 if major == 1 && minor < 9
11 10 require 'rack/backports/uri/common_18'
2  test/spec_lock.rb
@@ -139,7 +139,7 @@ def close; @close_called = true; end
139 139 should "unlock if the app throws" do
140 140 lock = Lock.new
141 141 env = Rack::MockRequest.env_for("/")
142   - app = lock_app(lambda {|env| throw :bacon }, lock)
  142 + app = lock_app(lambda {|_| throw :bacon }, lock)
143 143 lambda { app.call(env) }.should.throw(:bacon)
144 144 lock.synchronized.should.equal false
145 145 end

0 comments on commit 3b3b285

Please sign in to comment.
Something went wrong with that request. Please try again.