mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Remove unnecessary else statement
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user