MCPcopy Create free account
hub / github.com/Noumena-Network/code / restoreEnvVar

Function restoreEnvVar

src/utils/authSessionIngress.test.ts:45–51  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

43) as Record<(typeof envKeys)[number], string | undefined>
44
45function restoreEnvVar(key: string, value: string | undefined): void {
46 if (value === undefined) {
47 delete process.env[key]
48 } else {
49 process.env[key] = value
50 }
51}
52
53function restoreEnv(): void {
54 for (const key of envKeys) {

Callers 1

restoreEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected