From 4708b5d0464cdd4014c5cc5f6bdded0b297b6ffa Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Thu, 7 Sep 2023 10:06:00 -0500 Subject: [PATCH] Update spec/support/authentication_helpers.rb Co-authored-by: Zach Wolfenbarger --- spec/support/authentication_helpers.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spec/support/authentication_helpers.rb b/spec/support/authentication_helpers.rb index 09d1a7a..e8337da 100644 --- a/spec/support/authentication_helpers.rb +++ b/spec/support/authentication_helpers.rb @@ -10,11 +10,7 @@ def authenticate_with_membership!(classification_user_group, memberships, is_pan end def panoptes_application_client - return @panoptes_application_client if @panoptes_application_client - - @panoptes_application_client = instance_double(Panoptes::Client) - - @panoptes_application_client + @panoptes_application_client ||= instance_double(Panoptes::Client) end def user_client_with_membership(classification_user_group, memberships, is_panoptes_admin)