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

Function restoreEnvVar

src/utils/sessionIngressAuth.test.ts:42–48  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

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

Callers 1

restoreEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected