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

Function restoreEnvVar

src/bridge/pollConfig.test.ts:9–15  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

7const originalFcOverrides = process.env.CLAUDE_INTERNAL_FC_OVERRIDES
8
9function restoreEnvVar(key: string, value: string | undefined): void {
10 if (value === undefined) {
11 delete process.env[key]
12 } else {
13 process.env[key] = value
14 }
15}
16
17function setPollConfigOverride(raw: unknown): void {
18 process.env.USER_TYPE = 'ant'

Callers 1

pollConfig.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected