diff --git a/Sources/Identity/CustomerInfo.swift b/Sources/Identity/CustomerInfo.swift index c194ed9570..ef84c9b6e3 100644 --- a/Sources/Identity/CustomerInfo.swift +++ b/Sources/Identity/CustomerInfo.swift @@ -238,6 +238,8 @@ extension CustomerInfo { /// Creates a copy of this ``CustomerInfo`` modifying only the ``VerificationResult``. func copy(with entitlementVerification: VerificationResult) -> Self { + guard entitlementVerification != self.data.entitlementVerification else { return self } + var copy = self.data copy.entitlementVerification = entitlementVerification return .init(data: copy) diff --git a/Sources/Networking/HTTPClient/HTTPResponse.swift b/Sources/Networking/HTTPClient/HTTPResponse.swift index 5962d9fc0f..9c2ba47453 100644 --- a/Sources/Networking/HTTPClient/HTTPResponse.swift +++ b/Sources/Networking/HTTPClient/HTTPResponse.swift @@ -98,6 +98,8 @@ extension HTTPResponse { } func copy(with newVerificationResult: VerificationResult) -> Self { + guard newVerificationResult != self.verificationResult else { return self } + return .init( statusCode: self.statusCode, responseHeaders: self.responseHeaders,