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:
@@ -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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user