mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Removes redundant authentication check
Removes a redundant check for "There is no account that uses those credentials" as it's already covered by other checks, simplifying the logic for handling invalid credentials and preventing unnecessary code execution.
This commit is contained in:
parent
6d076888a1
commit
f7f8bb841c
1 changed files with 1 additions and 2 deletions
|
|
@ -178,8 +178,7 @@ class ApiClientImpl(
|
|||
|| errField.equals("invalidCredentials", ignoreCase = true)
|
||||
|| msgField.contains("invalidCredentials", ignoreCase = true)
|
||||
|| msgField.contains("Missing authentication headers", ignoreCase = true)
|
||||
|| msgField.contains("There is no account that uses those credentials", ignoreCase = true)
|
||||
|
||||
|
||||
if (shouldLogout) {
|
||||
HabiticaBaseApplication.logout(context)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue