mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 17:50:07 +08:00
Fix new linter errors
This commit is contained in:
@@ -538,7 +538,7 @@ export async function getCodeQLForCmd(
|
||||
const output = await runTool(cmd, ["version", "--format=json"]);
|
||||
try {
|
||||
result = JSON.parse(output) as VersionInfo;
|
||||
} catch (err) {
|
||||
} catch {
|
||||
throw Error(
|
||||
`Invalid JSON output from \`version --format=json\`: ${output}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user