Re-order env to be first argument for consistency

This commit is contained in:
Mario Campos
2026-08-13 08:12:50 -05:00
parent 6dc633238e
commit 2d49edbac6
3 changed files with 5 additions and 5 deletions

4
lib/entry-points.js generated
View File

@@ -146251,7 +146251,7 @@ var cachedCodeQlVersion = void 0;
function getCommandCacheFilePath(env) {
return import_path.default.join(getTemporaryDirectory(env), COMMAND_CACHE_FILENAME);
}
function cacheCodeQlVersion(cmd, version, env) {
function cacheCodeQlVersion(env, cmd, version) {
if (cachedCodeQlVersion !== void 0) {
throw new Error("cacheCodeQlVersion() should be called only once");
}
@@ -151883,7 +151883,7 @@ async function getCodeQLForCmd(cmd, checkVersion) {
noStreamStdout: true
}
);
cacheCodeQlVersion(cmd, result, getEnv());
cacheCodeQlVersion(getEnv(), cmd, result);
}
return result;
},