Permalink
Browse files

Not need to do this double ternary

  • Loading branch information...
1 parent 29f13be commit db23e321413aedcfb30207da80bfe06a0eb90e8b @spastorino spastorino committed Sep 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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",
"HTTPS" => https? ? "on" : "off",
"rack.url_scheme" => https? ? "https" : "http",

0 comments on commit db23e32

Please sign in to comment.