Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 15, 2023
1 parent 4cf43a8 commit 5e08f96
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Listeners/AddAssetSymlinkFolders.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ public function handle(ServeCommandStarted $event): void
/** @var string $to */
$to = Workbench::laravelPath($pair['to']);

if (! $this->files->isDirectory($from)) {
return null;
}

return ['from' => $from, 'to' => $to];
return $this->files->isDirectory($from)
? ['from' => $from, 'to' => $to]
: null;
})->filter()
->each(function ($pair) {
/** @var array{from: string, to: string} $pair */
Expand Down

0 comments on commit 5e08f96

Please sign in to comment.