Skip to content
Browse files

Removed warning actionpack url.rb

Before:

/Users/Juan/dev/rails/actionpack/lib/action_dispatch/http/url.rb:95: warning: shadowing outer local variable - port

After:

No warning
  • Loading branch information...
1 parent 5f9a2be commit 26ef4fce411bdcb94c3b2ed483cc884e2a6aab60 @JuanitoFatas JuanitoFatas committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/http/url.rb
View
4 actionpack/lib/action_dispatch/http/url.rb
@@ -92,8 +92,8 @@ def build_host_url(options)
end
result << host
- normalize_port(port, protocol) { |port|
- result << ":#{port}"
+ normalize_port(port, protocol) { |normalized_port|
+ result << ":#{normalized_port}"
}
result

0 comments on commit 26ef4fc

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