mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Re-order env to be first argument for consistency
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user