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

Update NewCmix functor

parent 9d3d86c8
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
...@@ -2,14 +2,14 @@ import Bindings ...@@ -2,14 +2,14 @@ import Bindings
import XCTestDynamicOverlay import XCTestDynamicOverlay
public struct NewCmix { public struct NewCmix {
public var run: (String, String, Data, String?) throws -> Bool public var run: (String, String, Data, String?) throws -> Void
public func callAsFunction( public func callAsFunction(
ndfJSON: String, ndfJSON: String,
storageDir: String, storageDir: String,
password: Data, password: Data,
registrationCode: String? registrationCode: String?
) throws -> Bool { ) throws {
try run(ndfJSON, storageDir, password, registrationCode) try run(ndfJSON, storageDir, password, registrationCode)
} }
} }
...@@ -21,7 +21,9 @@ extension NewCmix { ...@@ -21,7 +21,9 @@ extension NewCmix {
if let error = error { if let error = error {
throw error throw error
} }
return result if !result {
fatalError("BindingsNewCmix returned `false` without providing error")
}
} }
} }
......
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