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

Function restoreEnvVar

src/services/api/bootstrap.test.ts:58–64  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

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

Callers 1

restoreEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected