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

View File

@@ -59,14 +59,14 @@ function getCommandCacheFilePath(env: Env): string {
/**
* Caches the CodeQL CLI version both in-memory and on disk.
* @param env The environment variables to use.
* @param cmd The path to the CodeQL CLI.
* @param version The version information to cache.
* @param env The environment variables to use.
*/
export function cacheCodeQlVersion(
env: Env,
cmd: string,
version: VersionInfo,
env: Env,
): void {
if (cachedCodeQlVersion !== undefined) {
throw new Error("cacheCodeQlVersion() should be called only once");