mirror of
https://github.com/flarum/framework.git
synced 2025-02-23 00:09:56 +08:00
Remove unnecessary else statement
This commit is contained in:
parent
377d439c47
commit
ef89b1f6b1
@ -326,9 +326,9 @@ class User extends AbstractModel
|
|||||||
if ($this->avatar_path) {
|
if ($this->avatar_path) {
|
||||||
if (strpos($this->avatar_path, '://') !== false) {
|
if (strpos($this->avatar_path, '://') !== false) {
|
||||||
return $this->avatar_path;
|
return $this->avatar_path;
|
||||||
} else {
|
|
||||||
return app('Flarum\Forum\UrlGenerator')->toPath('assets/avatars/'.$this->avatar_path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return app('Flarum\Forum\UrlGenerator')->toPath('assets/avatars/'.$this->avatar_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user