Skip to content
Browse files

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

  • Loading branch information...
1 parent ebc5a93 commit 3b3b285608f3453579e6f8e7e27b71b6afd77898 @carlosantoniodasilva carlosantoniodasilva committed Jan 7, 2013
Showing with 1 addition and 2 deletions.
  1. +0 −1 lib/rack/utils.rb
  2. +1 −1 test/spec_lock.rb
View
1 lib/rack/utils.rb
@@ -5,7 +5,6 @@
require 'rack/multipart'
major, minor, patch = RUBY_VERSION.split('.').map { |v| v.to_i }
-ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
if major == 1 && minor < 9
require 'rack/backports/uri/common_18'
View
2 test/spec_lock.rb
@@ -139,7 +139,7 @@ def close; @close_called = true; end
should "unlock if the app throws" do
lock = Lock.new
env = Rack::MockRequest.env_for("/")
- app = lock_app(lambda {|env| throw :bacon }, lock)
+ app = lock_app(lambda {|_| throw :bacon }, lock)
lambda { app.call(env) }.should.throw(:bacon)
lock.synchronized.should.equal false
end

0 comments on commit 3b3b285

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