Skip to content

Commit

Permalink
Correct Lint/RedundantSafeNavigation
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jun 5, 2023
1 parent 7786089 commit 20f5de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class RegistrationsController < Devise::RegistrationsController

def update_resource(resource, params)
# Require current password if user is trying to change password.
return super if params['password']&.present?
return super if params['password'].present?

# Allow user to update other registration info without password
resource.update_without_password(params.except('current_password'))
Expand Down

0 comments on commit 20f5de2

Please sign in to comment.