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

Adds guard to nil username on restoring

parent 97eef41c
No related branches found
No related tags found
3 merge requests!71Releasing v1.1.5 (214),!67v1.1.5 b(203),!65Adds guard to nil username on restoring
...@@ -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")
} }
......
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