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

Function restoreEnvVar

src/auth/runtime/LeaseManager.test.ts:53–59  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

51let tempConfigDir = ''
52
53function restoreEnvVar(key: string, value: string | undefined): void {
54 if (value === undefined) {
55 delete process.env[key]
56 } else {
57 process.env[key] = value
58 }
59}
60
61function restoreEnv(): void {
62 for (const key of envKeys) {

Callers 1

restoreEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected