Removed redundant null check

This commit is contained in:
Dan Brown 2023-09-16 13:49:03 +01:00
parent b90033a730
commit e16bdf443c
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9

View file

@ -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;
}