Skip to content

Commit 96e1509

Browse files
rubocop fixes
1 parent 3b01d81 commit 96e1509

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/impressionist_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ def params_hash
158158

159159
#use both @current_user and current_user helper
160160
def user_id
161-
user_id = @current_user ? @current_user.id : nil rescue nil
162-
user_id = current_user ? current_user.id : nil rescue nil if user_id.blank?
161+
user_id = @current_user&.id rescue nil
162+
user_id = current_user&.id rescue nil if user_id.blank?
163163
user_id
164164
end
165165
end

0 commit comments

Comments
 (0)