Skip to content
Snippets Groups Projects
Commit 2a4fd98c authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Updating NDF is now infinitely recursive

parent 784d8ebd
No related branches found
No related tags found
2 merge requests!54Releasing 1.1.4,!50Search UI 2.0
......@@ -154,17 +154,15 @@ extension BindingsClient: BindingsInterface {
for env: NetworkEnvironment,
_ completion: @escaping (Result<Data?, Error>) -> Void
) {
log(type: .crumbs)
var error: NSError?
let ndf = BindingsDownloadAndVerifySignedNdfWithUrl(env.url, env.cert, &error)
if let error = error {
log(string: error.localizedDescription, type: .error)
completion(.failure(error))
} else {
completion(.success(ndf))
guard error == nil else {
Self.updateNDF(for: env, completion)
return
}
completion(.success(ndf))
}
/// Fetches a JSON with up-to-date error descriptions
......
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