Skip to content

Commit 2d49edb

Browse files
committed
Re-order env to be first argument for consistency
1 parent 6dc6332 commit 2d49edb

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/cli/output-cache.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ function getCommandCacheFilePath(env: Env): string {
5959

6060
/**
6161
* Caches the CodeQL CLI version both in-memory and on disk.
62+
* @param env The environment variables to use.
6263
* @param cmd The path to the CodeQL CLI.
6364
* @param version The version information to cache.
64-
* @param env The environment variables to use.
6565
*/
6666
export function cacheCodeQlVersion(
67+
env: Env,
6768
cmd: string,
6869
version: VersionInfo,
69-
env: Env,
7070
): void {
7171
if (cachedCodeQlVersion !== undefined) {
7272
throw new Error("cacheCodeQlVersion() should be called only once");

‎src/codeql.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ async function getCodeQLForCmd(
499499
noStreamStdout: true,
500500
},
501501
);
502-
outputCache.cacheCodeQlVersion(cmd, result, getEnv());
502+
outputCache.cacheCodeQlVersion(getEnv(), cmd, result);
503503
}
504504
return result;
505505
},

0 commit comments

Comments
 (0)