Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
invalidusrname committed Dec 17, 2022
1 parent 3b01d81 commit 96e1509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/impressionist_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96e1509

Please sign in to comment.