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