Skip to content

Commit 0772395

Browse files
committed
Update executable path
1 parent 6465666 commit 0772395

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/main/wrapper/CxWrapper.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,7 @@ export class CxWrapper {
3131
} else {
3232
logger.info("Did not receive ClientId/Secret or ApiKey from cli arguments");
3333
}
34-
const executablePath = cxInstaller.getExecutablePath();
35-
if (cxScanConfig.pathToExecutable) {
36-
this.config.pathToExecutable = cxScanConfig.pathToExecutable;
37-
} else if (process.platform === 'win32') {
38-
this.config.pathToExecutable = executablePath;
39-
} else if (process.platform === 'darwin') {
40-
this.config.pathToExecutable = executablePath;
41-
} else {
42-
this.config.pathToExecutable = executablePath;
43-
}
34+
this.config.pathToExecutable = cxInstaller.getExecutablePath();
4435
if (cxScanConfig.baseUri) {
4536
this.config.baseUri = cxScanConfig.baseUri;
4637
}

0 commit comments

Comments
 (0)