From 3ec68b8d07e1b23fe0d6ba118e5c703a55911daf Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Fri, 26 Aug 2022 13:27:08 +0100 Subject: [PATCH] Refactor GetIdFromContact --- Sources/XXClient/Functors/GetIdFromContact.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/XXClient/Functors/GetIdFromContact.swift b/Sources/XXClient/Functors/GetIdFromContact.swift index 1055a69d..0c6f74cc 100644 --- a/Sources/XXClient/Functors/GetIdFromContact.swift +++ b/Sources/XXClient/Functors/GetIdFromContact.swift @@ -4,15 +4,15 @@ import XCTestDynamicOverlay public struct GetIdFromContact { public var run: (Data) throws -> Data - public func callAsFunction(_ contact: Data) throws -> Data { - try run(contact) + public func callAsFunction(_ contactData: Data) throws -> Data { + try run(contactData) } } extension GetIdFromContact { - public static let live = GetIdFromContact { contact in + public static let live = GetIdFromContact { contactData in var error: NSError? - let id = BindingsGetIDFromContact(contact, &error) + let id = BindingsGetIDFromContact(contactData, &error) if let error = error { throw error } -- GitLab