mirror of
https://github.com/elyby/accounts.git
synced 2024-11-09 15:02:19 +05:30
Fixes ACCOUNTS-13, ACCOUNTS-3F. Remove warnings for the cases which are actually happens
This commit is contained in:
parent
daebb66266
commit
5dc140da15
@ -21,10 +21,8 @@ class Textures {
|
||||
$uuid = str_replace('-', '', $this->account->uuid);
|
||||
$profile = $this->getProfile($signed);
|
||||
if ($profile === null) {
|
||||
// This case shouldn't happen at all, but until we find out how it'll actually behave,
|
||||
// provide for a fallback solution
|
||||
Yii::warning("By some reasons there is no profile for \"{$this->account->username}\".");
|
||||
|
||||
// This case shouldn't happen at all, but synchronization isn't perfect and sometimes
|
||||
// information might be now updated. Provide fallback solution
|
||||
$profile = [
|
||||
'name' => $this->account->username,
|
||||
'id' => $uuid,
|
||||
@ -52,7 +50,6 @@ class Textures {
|
||||
}
|
||||
} elseif ($profile['id'] !== $uuid) {
|
||||
// Also a case that shouldn't happen, but is technically possible
|
||||
Yii::warning("By an unknown reason username \"{$this->account->username}\" has an invalid id from chrly");
|
||||
$profile['id'] = $uuid;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user