From 96e150959b09f01148a83e1478e7ef038dbff825 Mon Sep 17 00:00:00 2001 From: Matt McMahand Date: Sat, 17 Dec 2022 14:35:40 -0500 Subject: [PATCH] rubocop fixes --- app/controllers/impressionist_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/impressionist_controller.rb b/app/controllers/impressionist_controller.rb index ec1c8a6..aa15edb 100644 --- a/app/controllers/impressionist_controller.rb +++ b/app/controllers/impressionist_controller.rb @@ -158,8 +158,8 @@ def params_hash #use both @current_user and current_user helper def user_id - user_id = @current_user ? @current_user.id : nil rescue nil - user_id = current_user ? current_user.id : nil rescue nil if user_id.blank? + user_id = @current_user&.id rescue nil + user_id = current_user&.id rescue nil if user_id.blank? user_id end end