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
dbd35244
Commit
dbd35244
authored
2 years ago
by
Bruno Muniz
Browse files
Options
Downloads
Patches
Plain Diff
Adds guard to nil username on restoring
parent
97eef41c
No related branches found
No related tags found
3 merge requests
!71
Releasing v1.1.5 (214)
,
!67
v1.1.5 b(203)
,
!65
Adds guard to nil username on restoring
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/Integration/Session/Session.swift
+1
-1
1 addition, 1 deletion
Sources/Integration/Session/Session.swift
with
1 addition
and
1 deletion
Sources/Integration/Session/Session.swift
+
1
−
1
View file @
dbd35244
...
@@ -140,7 +140,7 @@ public final class Session: SessionType {
...
@@ -140,7 +140,7 @@ public final class Session: SessionType {
}
}
}
}
guard
username
!
.
isEmpty
==
false
else
{
guard
let
username
=
username
,
username
.
isEmpty
==
false
else
{
fatalError
(
"Trying to restore an account that has no username"
)
fatalError
(
"Trying to restore an account that has no username"
)
}
}
...
...
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