mirror of
https://github.com/postalserver/postal.git
synced 2026-10-18 18:26:06 +00:00
style(rubocop): Style/IdenticalConditionalBranches
This commit is contained in:
@@ -48,11 +48,7 @@ class ApplicationController < ActionController::Base
|
||||
helper_method :page_title
|
||||
|
||||
def redirect_to_with_return_to(url, *args)
|
||||
if params[:return_to].blank? || !params[:return_to].starts_with?("/")
|
||||
redirect_to url_with_return_to(url), *args
|
||||
else
|
||||
redirect_to url_with_return_to(url), *args
|
||||
end
|
||||
redirect_to url_with_return_to(url), *args
|
||||
end
|
||||
|
||||
def set_timezone
|
||||
|
||||
Reference in New Issue
Block a user