Skip to content

Commit

Permalink
Inline site check in unisolate command
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Mar 14, 2022
1 parent b1d9b2b commit b09a916
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/Valet/PhpFpm.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@ public function isolateDirectory($directory, $version)
*/
public function unIsolateDirectory($directory)
{
$site = $this->site->getSiteUrl($directory);

if (! $site) {
if (! $site = $this->site->getSiteUrl($directory)) {
throw new DomainException("The [{$directory}] site could not be found in Valet's site list.");
}

Expand Down

0 comments on commit b09a916

Please sign in to comment.