Skip to content

Commit 40f1649

Browse files
authored
Update platform.ts
1 parent b405e00 commit 40f1649

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/platform.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,11 @@ export function getDefaultPowerShellPath(
104104
return platformDetails.isOS64Bit && platformDetails.isProcess64Bit
105105
? SysWow64PowerShellPath
106106
: System32PowerShellPath;
107-
} else {
107+
}
108108
return !platformDetails.isOS64Bit || platformDetails.isProcess64Bit
109109
? System32PowerShellPath
110110
: SysnativePowerShellPath;
111-
}
112-
} else if (platformDetails.operatingSystem === OperatingSystem.MacOS) {
111+
} if (platformDetails.operatingSystem === OperatingSystem.MacOS) {
113112
// Always default to the stable version of PowerShell (if installed) but handle case of only Preview installed
114113
powerShellExePath = macOSExePath;
115114
if (!fs.existsSync(macOSExePath) && fs.existsSync(macOSPreviewExePath)) {

0 commit comments

Comments
 (0)