Skip to content

Commit 0d187da

Browse files
committed
Refactor shouldUseSail method to handle empty selectedBoostFeatures case
Signed-off-by: Pushpak Chhajed <[email protected]>
1 parent a53aa59 commit 0d187da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Console/InstallCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,10 @@ protected function shouldInstallHerdMcp(): bool
533533

534534
protected function shouldUseSail(): bool
535535
{
536+
if ($this->selectedBoostFeatures->isEmpty()) {
537+
return $this->config->getSail();
538+
}
539+
536540
return $this->selectedBoostFeatures->contains('sail');
537541
}
538542

0 commit comments

Comments
 (0)