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 { ...@@ -154,17 +154,15 @@ extension BindingsClient: BindingsInterface {
for env: NetworkEnvironment, for env: NetworkEnvironment,
_ completion: @escaping (Result<Data?, Error>) -> Void _ completion: @escaping (Result<Data?, Error>) -> Void
) { ) {
log(type: .crumbs)
var error: NSError? var error: NSError?
let ndf = BindingsDownloadAndVerifySignedNdfWithUrl(env.url, env.cert, &error) let ndf = BindingsDownloadAndVerifySignedNdfWithUrl(env.url, env.cert, &error)
if let error = error { guard error == nil else {
log(string: error.localizedDescription, type: .error) Self.updateNDF(for: env, completion)
completion(.failure(error)) return
} else {
completion(.success(ndf))
} }
completion(.success(ndf))
} }
/// Fetches a JSON with up-to-date error descriptions /// 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