Skip to content
Snippets Groups Projects
Commit 2f3233dc authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update LoadReceptionIdentity functor

parent f24abef7
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
...@@ -2,12 +2,12 @@ import Bindings ...@@ -2,12 +2,12 @@ import Bindings
import XCTestDynamicOverlay import XCTestDynamicOverlay
public struct LoadReceptionIdentity { public struct LoadReceptionIdentity {
public var run: (String, Int) throws -> Data public var run: (String, Int) throws -> ReceptionIdentity
public func callAsFunction( public func callAsFunction(
key: String, key: String,
cmixId: Int cmixId: Int
) throws -> Data { ) throws -> ReceptionIdentity {
try run(key, cmixId) try run(key, cmixId)
} }
} }
...@@ -22,7 +22,7 @@ extension LoadReceptionIdentity { ...@@ -22,7 +22,7 @@ extension LoadReceptionIdentity {
guard let data = data else { guard let data = data else {
fatalError("BindingsLoadReceptionIdentity returned `nil` without providing error") fatalError("BindingsLoadReceptionIdentity returned `nil` without providing error")
} }
return data return try ReceptionIdentity.decode(data)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment