Fix status reporting error on Windows

This commit is contained in:
Chuan-kai Lin 2022-04-25 14:45:52 -07:00
parent ff8b365e79
commit 6dd9baf8be
4 changed files with 4 additions and 3 deletions

2
lib/codeql.js generated
View file

@ -394,7 +394,7 @@ async function getCodeQLForCmd(cmd, checkVersion) {
async getVersion() {
let result = util.getCachedCodeQlVersion();
if (result === undefined) {
result = await runTool(cmd, ["version", "--format=terse"]);
result = (await runTool(cmd, ["version", "--format=terse"])).trim();
util.cacheCodeQlVersion(result);
}
return result;

File diff suppressed because one or more lines are too long