mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-03-03 15:44:24 +08:00
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
|
||||
{
|
||||
$user = user();
|
||||
if (is_null($user) || $user->isGuest()) {
|
||||
if ($user->isGuest()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user