Код укоротил

This commit is contained in:
sasha0552 2019-04-10 03:41:36 +06:00
parent 8509fd37c7
commit 633da2d4bf

View file

@ -21,7 +21,7 @@ public void init() {
@Override
protected Entry fetchEntry(UUID uuid) throws IOException {
throw new UnsupportedOperationException("Произошол троллинг...");
//var = IOHelper.request(new URL(CommonHelper.replace(url, "type", "GetUUID", "uuid", IOHelper.urlEncode(u))));
}
@Override
@ -50,10 +50,7 @@ public String uuidToUsername(UUID uuid) throws IOException {
protected boolean updateAuth(UUID uuid, String username, String accessToken) throws IOException {
boolean isUUIDupdated = updUUID(uuid, username).equals("OK");
boolean isAccessTokenUpdated = updAccessToken(accessToken, username).equals("OK");
if (isUUIDupdated == true && isAccessTokenUpdated == true) {
return true;
}
return false;
return isUUIDupdated && isAccessTokenUpdated;
}
@Override