Skip to content

Commit

Permalink
remove type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
werner-freytag committed May 17, 2023
1 parent 45bf7cc commit 847c9da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ protected function publishedCollectionTerms()

protected static function siteFilter(\Statamic\Sites\Site $currentSite): callable
{
return static function (\Statamic\Entries\Entry $entry) use ($currentSite) {
return $entry->redirectUrl() === null
&& $entry->locale() === $currentSite->lang();
return static function ($entry) use ($currentSite) {
return !$entry->isRedirect() && $entry->locale() === $currentSite->handle();
};
}

Expand Down

0 comments on commit 847c9da

Please sign in to comment.