mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Hash#empty? is faster than Enumerable#any? when used on a Hash.
This commit is contained in:
parent
70357666bc
commit
5b81d1f3ef
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ module ActionDispatch
|
|||
|
||||
return [path, params.keys] if @extras
|
||||
|
||||
path << "?#{params.to_query}" if params.any?
|
||||
path << "?#{params.to_query}" unless params.empty?
|
||||
path
|
||||
rescue Rack::Mount::RoutingError
|
||||
raise_routing_error
|
||||
|
|
Loading…
Reference in a new issue