From 948c4bb82b45c62af82f1c52e42c9eff8bb8ef63 Mon Sep 17 00:00:00 2001 From: Katherine Martin <78093815+martikat@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:20:18 +0100 Subject: [PATCH] Fix rubocop error --- app/controllers/settings_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index 818dd506..d5ce190c 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -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