mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 06:24:53 +08:00
Remove unnecessary else statement
This commit is contained in:
parent
f148013108
commit
cb0e9bd507
@ -326,9 +326,9 @@ class User extends AbstractModel
|
||||
if ($this->avatar_path) {
|
||||
if (strpos($this->avatar_path, '://') !== false) {
|
||||
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