Skip to content

Commit f35e8ff

Browse files
rnapolestucksaun
andauthored
Update discovery_windows.go
Co-authored-by: Tugdual Saunier <[email protected]>
1 parent f06cd98 commit f35e8ff

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

discovery_windows.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,7 @@ func (s *PHPStore) doDiscover() {
6060

6161
func (s *PHPStore) addFromPath() {
6262

63-
// Determine the executable name based on the operating system
64-
exeName := "php"
65-
if runtime.GOOS == "windows" {
66-
exeName = "php.exe"
67-
}
68-
69-
// Alternative approach using exec.LookPath
70-
phpPath, err := exec.LookPath(exeName)
63+
phpPath, err := exec.LookPath("php.exe")
7164
if err != nil {
7265
return
7366
}

0 commit comments

Comments
 (0)