From e16bdf443ce68e6363ea40124d66eb15c05f2e8b Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sat, 16 Sep 2023 13:49:03 +0100 Subject: [PATCH] Removed redundant null check --- app/Activity/Models/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Activity/Models/View.php b/app/Activity/Models/View.php index b593a7d27..30ead1193 100644 --- a/app/Activity/Models/View.php +++ b/app/Activity/Models/View.php @@ -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; }