1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +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)
{
$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.");
}