Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xx messenger iOS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
xx messenger iOS
Commits
2a4fd98c
Commit
2a4fd98c
authored
2 years ago
by
Bruno Muniz
Browse files
Options
Downloads
Patches
Plain Diff
Updating NDF is now infinitely recursive
parent
784d8ebd
No related branches found
No related tags found
2 merge requests
!54
Releasing 1.1.4
,
!50
Search UI 2.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/Integration/Implementations/Bindings.swift
+5
-7
5 additions, 7 deletions
Sources/Integration/Implementations/Bindings.swift
with
5 additions
and
7 deletions
Sources/Integration/Implementations/Bindings.swift
+
5
−
7
View file @
2a4fd98c
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment