Skip to content

Commit

Permalink
CodeClimate reduce lines
Browse files Browse the repository at this point in the history
  • Loading branch information
emmabjj committed Jan 15, 2025
1 parent 6e02a4f commit 342f363
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/services/evaluator_management_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ def update_name_for_existing_user(user)
)

if temp_invitation.valid?
user.update(
first_name: temp_invitation.first_name,
last_name: temp_invitation.last_name
)
user.update( first_name: temp_invitation.first_name, last_name: temp_invitation.last_name )
{ success: true }
else
name_errors = temp_invitation.errors.messages.slice(:first_name, :last_name)
Expand Down

0 comments on commit 342f363

Please sign in to comment.