Skip to content

Commit

Permalink
Fix early return when no blueprint found & running in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Sep 10, 2023
1 parent e257a30 commit 36b5ba2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Runway.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function discoverResources(): self
// If we're running in a console & the blueprint doesn't exist, let's ignore the resource.
// https://github.com/duncanmcclean/runway/pull/320
if (app()->runningInConsole()) {
return;
return [$handle => null];
}

throw $e;
Expand All @@ -60,6 +60,7 @@ public static function discoverResources(): self

return [$handle => $resource];
})
->reject(fn ($resource, $handle) => is_null($resource))
->toArray();

return new static();
Expand Down

0 comments on commit 36b5ba2

Please sign in to comment.