Rename type to better match generic intention

This commit is contained in:
Mario Campos
2026-08-11 17:59:08 -05:00
parent b222c3aaea
commit 40f80a8df0
2 changed files with 11 additions and 9 deletions

4
lib/entry-points.js generated
View File

@@ -146278,7 +146278,7 @@ function getCachedCodeQlVersion(cmd, env = getEnv()) {
} catch {
return void 0;
}
if (!isPersistedVersionInfo(persisted) || cmd !== void 0 && persisted.cmd !== cmd) {
if (!isCommandCacheRecord(persisted) || cmd !== void 0 && persisted.cmd !== cmd) {
return void 0;
}
cachedCodeQlVersion = persisted.entries["version" /* Version */];
@@ -146288,7 +146288,7 @@ function isVersionInfo(x) {
const candidate = x;
return typeof candidate === "object" && candidate !== null && typeof candidate.version === "string" && (candidate.features === void 0 || typeof candidate.features === "object" && candidate.features !== null) && (candidate.overlayVersion === void 0 || typeof candidate.overlayVersion === "number");
}
function isPersistedVersionInfo(x) {
function isCommandCacheRecord(x) {
const candidate = x;
return typeof candidate === "object" && candidate !== null && typeof candidate.cmd === "string" && candidate.entries !== void 0 && isVersionInfo(candidate.entries["version" /* Version */]);
}