Объеденение двух returnov

This commit is contained in:
sasha0552 2019-04-10 03:20:05 +06:00
parent 1791b07f50
commit b74cbfbc2d

View file

@ -31,9 +31,13 @@ protected Entry fetchEntry(String username) throws IOException {
@Override
protected boolean updateAuth(UUID uuid, String username, String accessToken) throws IOException {
return updUUID(uuid, username).equals("OK");
// а как объеденить? а то троллит
return updAccessToken(accessToken, username).equals("OK");
boolean isUUIDupdated = updUUID(uuid, username).equals("OK");
boolean isAccessTokenUpdated = updAccessToken(accessToken, username).equals("OK");
if (isUUIDupdated == true && isAccessTokenUpdated == true) {
return true;
} else {
return false;
}
}
@Override