Skip to content

Commit

Permalink
Fix rubocop error
Browse files Browse the repository at this point in the history
  • Loading branch information
martikat committed Apr 15, 2024
1 parent 7342770 commit 948c4bb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/controllers/settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ def set_cookie_pref
end

def request_path
if params[:request_path]
params[:request_path]
else
params[:return_url]
end
params[:request_path] || params[:return_url]
end

def settings_params
Expand Down

0 comments on commit 948c4bb

Please sign in to comment.