Skip to content

Commit cfc5a9d

Browse files
ReneWerner87claude
andcommitted
refactor(prefork): use windowsOS constant in dummyCmd for consistency
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dba20e1 commit cfc5a9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

prefork.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func dummyCmd() *exec.Cmd {
120120
if storeCommand := dummyChildCmd.Load(); storeCommand != nil && storeCommand != "" {
121121
command = storeCommand.(string) //nolint:forcetypeassert,errcheck // We always store a string in here
122122
}
123-
if runtime.GOOS == "windows" {
123+
if runtime.GOOS == windowsOS {
124124
return exec.Command("cmd", "/C", command, "version")
125125
}
126126
return exec.Command(command, "version")

0 commit comments

Comments
 (0)