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

View file

@ -641,7 +641,7 @@ async function getCodeQLForCmd(
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;