mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-11 18:57:30 +03:00
Объеденение двух returnov
This commit is contained in:
parent
1791b07f50
commit
b74cbfbc2d
1 changed files with 7 additions and 3 deletions
|
@ -31,9 +31,13 @@ protected Entry fetchEntry(String username) throws IOException {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean updateAuth(UUID uuid, String username, String accessToken) throws IOException {
|
protected boolean updateAuth(UUID uuid, String username, String accessToken) throws IOException {
|
||||||
return updUUID(uuid, username).equals("OK");
|
boolean isUUIDupdated = updUUID(uuid, username).equals("OK");
|
||||||
// а как объеденить? а то троллит
|
boolean isAccessTokenUpdated = updAccessToken(accessToken, username).equals("OK");
|
||||||
return updAccessToken(accessToken, username).equals("OK");
|
if (isUUIDupdated == true && isAccessTokenUpdated == true) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue