Skip to content
Browse files

Not need to do this double ternary

  • Loading branch information...
1 parent 268319c commit 262319ab012b10e2041a049d2ad9b7485734e991 @spastorino spastorino committed Sep 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/testing/integration.rb
View
2 actionpack/lib/action_dispatch/testing/integration.rb
@@ -264,7 +264,7 @@ def process(method, path, parameters = nil, rack_environment = nil)
:params => parameters,
"SERVER_NAME" => hostname,
- "SERVER_PORT" => (port ? port : (https? ? "443" : "80")),
+ "SERVER_PORT" => port || https? ? "443" : "80",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
"HTTPS" => https? ? "on" : "off",
"rack.url_scheme" => https? ? "https" : "http",

0 comments on commit 262319a

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