1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00

Inline site check in unisolate command

This commit is contained in:
Matt Stauffer
2022-03-14 15:02:16 -04:00
parent b1d9b2b669
commit b09a9163fa

View File

@@ -233,9 +233,7 @@ public function isolateDirectory($directory, $version)
*/ */
public function unIsolateDirectory($directory) public function unIsolateDirectory($directory)
{ {
$site = $this->site->getSiteUrl($directory); if (! $site = $this->site->getSiteUrl($directory)) {
if (! $site) {
throw new DomainException("The [{$directory}] site could not be found in Valet's site list."); throw new DomainException("The [{$directory}] site could not be found in Valet's site list.");
} }