Skip to content

Commit bbc7413

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Remove args check in 'execAutofix'
1 parent 561cbc4 commit bbc7413

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

extensions/ql-vscode/src/variant-analysis/view-autofixes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -699,11 +699,6 @@ function execAutofix(
699699
if (showCommand) {
700700
void logger.log(`Spawning '${bin} ${args.join(" ")}' in ${cwd}`);
701701
}
702-
if (args.some((a) => a === undefined || a === "")) {
703-
throw new Error(
704-
`Invalid empty or undefined arguments: ${args.join(" ")}`,
705-
);
706-
}
707702
const p = spawn(bin, args, { stdio: [0, 1, 2], ...options });
708703
p.on("error", reject);
709704
p.on("exit", (code) => (code === 0 ? resolve() : reject(code)));

0 commit comments

Comments
 (0)