Skip to content

Commit

Permalink
Inline variable
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 20, 2024
1 parent 598ff30 commit 9c0954e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ private function shouldIndexPageBeActive(string $group): bool
return false;
}

$firstGroupInSidebar = $this->getItems()->firstOrFail();

return $group === $firstGroupInSidebar->getGroupKey();
return $group === $this->getItems()->firstOrFail()->getGroupKey();
}
}

0 comments on commit 9c0954e

Please sign in to comment.