Permalink
Browse files

Get rid of useless temp variable

  • Loading branch information...
1 parent 5f00f13 commit 3f2bf0dbe988db27843c87dd81b24500d8160372 @carlosantoniodasilva carlosantoniodasilva committed Nov 15, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -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

0 comments on commit 3f2bf0d

Please sign in to comment.