Skip to content

Commit 01204b8

Browse files
committed
refactor: simplify artisan path resolution logic
1 parent a517e34 commit 01204b8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Install/CodeEnvironment/CodeEnvironment.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ public function getPhpPath(): string
4747

4848
public function getArtisanPath(): string
4949
{
50-
if (! $this->useAbsolutePathForMcp()) {
51-
return './artisan';
52-
}
53-
54-
return base_path('artisan');
50+
return $this->useAbsolutePathForMcp() ? base_path('artisan') : './artisan';
5551

5652
}
5753

0 commit comments

Comments
 (0)