mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-11 18:57:30 +03:00
Код укоротил
This commit is contained in:
parent
8509fd37c7
commit
633da2d4bf
1 changed files with 2 additions and 5 deletions
|
@ -21,7 +21,7 @@ public void init() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Entry fetchEntry(UUID uuid) throws IOException {
|
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
|
@Override
|
||||||
|
@ -50,10 +50,7 @@ public String uuidToUsername(UUID uuid) throws IOException {
|
||||||
protected boolean updateAuth(UUID uuid, String username, String accessToken) throws IOException {
|
protected boolean updateAuth(UUID uuid, String username, String accessToken) throws IOException {
|
||||||
boolean isUUIDupdated = updUUID(uuid, username).equals("OK");
|
boolean isUUIDupdated = updUUID(uuid, username).equals("OK");
|
||||||
boolean isAccessTokenUpdated = updAccessToken(accessToken, username).equals("OK");
|
boolean isAccessTokenUpdated = updAccessToken(accessToken, username).equals("OK");
|
||||||
if (isUUIDupdated == true && isAccessTokenUpdated == true) {
|
return isUUIDupdated && isAccessTokenUpdated;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue