Skip to content

Commit

Permalink
Remove unused block arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
sharmaansh21 committed Aug 25, 2015
1 parent aaacc67 commit 7b1c783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/request.rb
Expand Up @@ -334,7 +334,7 @@ def GET

# Override Rack's POST method to support indifferent access
def POST
get_header("action_dispatch.request.request_parameters") do |k|
get_header("action_dispatch.request.request_parameters") do
self.request_parameters = normalize_encode_params(super || {})
end
rescue Rack::Utils::ParameterTypeError, Rack::Utils::InvalidParameterError => e
Expand Down
2 changes: 1 addition & 1 deletion actionpack/test/dispatch/callbacks_test.rb
Expand Up @@ -28,7 +28,7 @@ def test_before_and_after_callbacks
assert_equal 4, Foo.a
assert_equal 4, Foo.b

dispatch do |env|
dispatch do
raise "error"
end rescue nil
assert_equal 6, Foo.a
Expand Down

0 comments on commit 7b1c783

Please sign in to comment.