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
import XCTestDynamicOverlay
public struct NewCmix {
public var run: (String, String, Data, String?) throws -> Bool
public var run: (String, String, Data, String?) throws -> Void
public func callAsFunction(
ndfJSON: String,
storageDir: String,
password: Data,
registrationCode: String?
) throws -> Bool {
) throws {
try run(ndfJSON, storageDir, password, registrationCode)
}
}
......@@ -21,7 +21,9 @@ extension NewCmix {
if let error = 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.
Please register or to comment