From 342f36324f00dee17cc48ab5516c98455426801d Mon Sep 17 00:00:00 2001 From: Emma Whamond Date: Tue, 14 Jan 2025 18:41:17 -0600 Subject: [PATCH] CodeClimate reduce lines --- app/services/evaluator_management_service.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/services/evaluator_management_service.rb b/app/services/evaluator_management_service.rb index b6a22e25..87f7f227 100644 --- a/app/services/evaluator_management_service.rb +++ b/app/services/evaluator_management_service.rb @@ -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)