Permalink
Browse files

Remove redundant conditional.

  • Loading branch information...
1 parent 152580e commit 8823b85010a217df555b981a453384e24ce7da47 @miloops miloops committed Sep 29, 2010
Showing with 1 addition and 5 deletions.
  1. +1 −5 actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -84,11 +84,7 @@ def normalize_argument_to_redirection(fragment)
when %r{^\w[\w\d+.-]*:.*}
fragment
when String
- if fragment =~ %r{^\w[\w\d+.-]*:.*}
- fragment
- else
- @request.protocol + @request.host_with_port + fragment
- end
+ @request.protocol + @request.host_with_port + fragment
when :back
raise RedirectBackError unless refer = @request.headers["Referer"]
refer

0 comments on commit 8823b85

Please sign in to comment.