Handle code quality comments

This commit is contained in:
Sander Declerck 2026-01-19 15:22:24 +01:00
parent fa94784130
commit d86246a71d
No known key found for this signature in database
3 changed files with 7 additions and 5 deletions

View file

@ -103,7 +103,7 @@ function runMsiInstaller(msiPath) {
// /i = install
// /qn = quiet mode (no UI)
ui.writeVerbose(`Running: msiexec /i "${msiPath}" /qn`);
execSync(`msiexec /i "${msiPath}" /qn`, { stdio: "inherit" });
execSync(`msiexec /i "${msiPath}" /qn`, { stdio: "inherit" }); // noopengrep this is ok, we control the msiPath
}
function stopServiceIfRunning() {
@ -128,7 +128,7 @@ function startService() {
return;
}
} catch {
// Service might not exist yet or query failed, proceed with start
ui.writeVerbose("Service not found or query failed, attempting to start.");
}
ui.writeVerbose('Running: net start "SafeChainAgent"');

View file

@ -3,13 +3,13 @@ import { ui } from "../environment/userInteraction.js";
import { initializeCliArguments } from "../config/cliArguments.js";
import { installOnWindows } from "./installOnWindows.js";
export function installUltimate() {
export async function installUltimate() {
initializeCliArguments(process.argv);
const operatingSystem = platform();
if (operatingSystem === "win32") {
installOnWindows();
await installOnWindows();
} else {
ui.writeInformation(
`${operatingSystem} is not supported yet by safe-chain's ultimate version.`,