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

Function restoreEnvVar

src/utils/http.authE2E.test.ts:72–78  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

70let tempConfigDir = ''
71
72function restoreEnvVar(key: string, value: string | undefined): void {
73 if (value === undefined) {
74 delete process.env[key]
75 } else {
76 process.env[key] = value
77 }
78}
79
80function restoreEnv(): void {
81 for (const key of envKeys) {

Callers 1

restoreEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected