Rename noCodeQLInToolcache

This commit is contained in:
Michael B. Gale
2026-10-21 19:36:54 +01:00
parent 6b344309f7
commit 0a00d0c14f

View File

@@ -28,7 +28,7 @@ function findCodeQL() {
return toolcache.findAllVersions("CodeQL");
}
function noCodeQLInToolcache() {
function checkNoCodeQLInToolcache() {
const allCodeqlVersions = findCodeQL();
if (allCodeqlVersions.length !== 0) {
throw new Error(
@@ -77,7 +77,7 @@ function main() {
removeCodeQLFromToolcache();
return;
case "absent":
noCodeQLInToolcache();
checkNoCodeQLInToolcache();
return;
case "installed":
hasCodeQLInToolcache(values["expected-version-count"]);