Merge branch 'main' into henrymercer/prompt-v1-to-v2-upgrades

This commit is contained in:
Henry Mercer
2022-04-28 14:17:36 +01:00
committed by GitHub
7 changed files with 12 additions and 7 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;