Removed redundant null check
This commit is contained in:
parent
b90033a730
commit
e16bdf443c
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class View extends Model
|
|||
public static function incrementFor(Viewable $viewable): int
|
||||
{
|
||||
$user = user();
|
||||
if (is_null($user) || $user->isGuest()) {
|
||||
if ($user->isGuest()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue