Skip to content

Commit

Permalink
Remove redundant conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
miloops committed Sep 29, 2010
1 parent 152580e commit 8823b85
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -84,11 +84,7 @@ def normalize_argument_to_redirection(fragment)
when %r{^\w[\w\d+.-]*:.*} when %r{^\w[\w\d+.-]*:.*}
fragment fragment
when String when String
if fragment =~ %r{^\w[\w\d+.-]*:.*} @request.protocol + @request.host_with_port + fragment
fragment
else
@request.protocol + @request.host_with_port + fragment
end
when :back when :back
raise RedirectBackError unless refer = @request.headers["Referer"] raise RedirectBackError unless refer = @request.headers["Referer"]
refer refer
Expand Down

0 comments on commit 8823b85

Please sign in to comment.