mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-17 05:42:06 +00:00
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
|
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…
Add table
Add a link
Reference in a new issue