Skip to content

Commit

Permalink
Remove unneeded condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Apr 10, 2024
1 parent 5b8552d commit 65d641f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Package/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ public function toDetailed(): static
public function type(string $type): static
{
$filtered = array_filter($this->items, function (Package $package) use ($type) {
if ($package instanceof DetailedPackage === false) {
return false;
}

return $package->getType() === $type;
});

Expand Down

0 comments on commit 65d641f

Please sign in to comment.