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

Refactor

parent c6e5e175
Branches
Tags
2 merge requests!102Release 1.0.0,!42Update Bindings
...@@ -4,7 +4,7 @@ import XCTestDynamicOverlay ...@@ -4,7 +4,7 @@ import XCTestDynamicOverlay
public struct GetFactsFromContact { public struct GetFactsFromContact {
public var run: (Data) throws -> [Fact] public var run: (Data) throws -> [Fact]
public func callAsFunction(contact: Data) throws -> [Fact] { public func callAsFunction(_ contact: Data) throws -> [Fact] {
try run(contact) try run(contact)
} }
} }
......
...@@ -4,7 +4,7 @@ import XCTestDynamicOverlay ...@@ -4,7 +4,7 @@ import XCTestDynamicOverlay
public struct GetPublicKeyFromContact { public struct GetPublicKeyFromContact {
public var run: (Data) throws -> Data public var run: (Data) throws -> Data
public func callAsFunction(contact: Data) throws -> Data { public func callAsFunction(_ contact: Data) throws -> Data {
try run(contact) try run(contact)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment