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

Function restoreEnvVar

src/services/api/usage.test.ts:56–62  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

54) as Record<(typeof envKeys)[number], string | undefined>
55
56function restoreEnvVar(key: string, value: string | undefined): void {
57 if (value === undefined) {
58 delete process.env[key]
59 } else {
60 process.env[key] = value
61 }
62}
63
64function restoreEnv(): void {
65 for (const key of envKeys) {

Callers 1

restoreEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected