Skip to content

Commit

Permalink
Get rid of useless temp variable
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Nov 15, 2013
1 parent 5f00f13 commit 3f2bf0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -195,8 +195,7 @@ def normalize_conditions!
end

if via = options[:via]
list = Array(via).map { |m| m.to_s.dasherize.upcase }
@conditions[:request_method] = list
@conditions[:request_method] = Array(via).map { |m| m.to_s.dasherize.upcase }
end
end

Expand Down

0 comments on commit 3f2bf0d

Please sign in to comment.