From 838b5bed7c66ea15723e33d0a8155a23e0bc0fdb Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Fri, 26 Aug 2022 13:24:53 +0100 Subject: [PATCH] Refactor UserDiscoveryPermanentDeleteAccount --- .../Functors/UserDiscoveryPermanentDeleteAccount.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/XXClient/UserDiscovery/Functors/UserDiscoveryPermanentDeleteAccount.swift b/Sources/XXClient/UserDiscovery/Functors/UserDiscoveryPermanentDeleteAccount.swift index 3f570e1e..f9390609 100644 --- a/Sources/XXClient/UserDiscovery/Functors/UserDiscoveryPermanentDeleteAccount.swift +++ b/Sources/XXClient/UserDiscovery/Functors/UserDiscoveryPermanentDeleteAccount.swift @@ -4,15 +4,15 @@ import XCTestDynamicOverlay public struct UserDiscoveryPermanentDeleteAccount { public var run: (Fact) throws -> Void - public func callAsFunction(_ fact: Fact) throws { - try run(fact) + public func callAsFunction(username: Fact) throws { + try run(username) } } extension UserDiscoveryPermanentDeleteAccount { public static func live(_ bindingsUD: BindingsUserDiscovery) -> UserDiscoveryPermanentDeleteAccount { - UserDiscoveryPermanentDeleteAccount { fact in - try bindingsUD.permanentDeleteAccount(fact.encode()) + UserDiscoveryPermanentDeleteAccount { username in + try bindingsUD.permanentDeleteAccount(username.encode()) } } } -- GitLab