Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed May 31, 2024
1 parent f835f14 commit 4c8360b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/LinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function destroy(LinkGroupItem $linkGroupItem)
{
$group = $linkGroupItem->group;
$linkGroupItem->delete();
if ($group?->items->isEmpty() || $group?->items->count() === 1) {
if ($group?->items->isEmpty() || 1 === $group?->items->count()) {
$group->delete();
}

Expand Down

0 comments on commit 4c8360b

Please sign in to comment.