Move isDefined from start-proxy to util

This commit is contained in:
Michael B. Gale
2025-09-01 15:14:57 +01:00
parent 53c72c5dc6
commit 8b8fbd5e4a
3 changed files with 13 additions and 13 deletions

View File

@@ -57638,6 +57638,9 @@ async function delay(milliseconds, opts) {
function getErrorMessage(error2) {
return error2 instanceof Error ? error2.message : String(error2);
}
function isDefined(value) {
return value !== void 0 && value !== null;
}
// src/actions-util.ts
var pkg = require_package();
@@ -57710,9 +57713,6 @@ var LANGUAGE_TO_REGISTRY_TYPE = {
rust: "cargo_registry",
go: "goproxy_server"
};
function isDefined(value) {
return value !== void 0 && value !== null;
}
function getCredentials(logger, registrySecrets, registriesCredentials, languageString) {
const language = languageString ? parseLanguage(languageString) : void 0;
const registryTypeForLanguage = language ? LANGUAGE_TO_REGISTRY_TYPE[language] : void 0;