Skip to content

Commit

Permalink
style: new line before return
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Oct 9, 2021
1 parent 38e1025 commit 0d5f348
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Exceptions/ManifestNotFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ public function getSolution(): Solution
$baseCommand = collect([
'pnpm-lock.yaml' => 'pnpm',
'yarn.lock' => 'yarn',
])->reduce(function ($_, $command, $lockFile) {
])->reduce(function ($default, $command, $lockFile) {
if (File::exists(base_path($lockFile))) {
return $command;
}
return $_;

return $default;
}, 'npm run');

return App::environment('local')
Expand Down

0 comments on commit 0d5f348

Please # to comment.