Skip to content

Commit e464348

Browse files
committed
Clean up change
1 parent e5233f4 commit e464348

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/script.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ export async function generateExecCommand(platform: string, scriptPath: string):
3838
try {
3939
await io.which("sudo", true);
4040
installCmd = `sudo -E ${installCmd}`;
41-
return installCmd;
4241
} catch {
4342
// Sudo not available, do not prepend
44-
return installCmd;
4543
}
46-
} else {
47-
return installCmd;
4844
}
45+
46+
return installCmd;
4947
}
5048

5149
export function defaultInstallRoot(platform: string, programName: string): string {

0 commit comments

Comments
 (0)