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

Function restoreEnvVar

src/utils/toolResultStorage.test.ts:23–29  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

21const originalFcOverrides = process.env.CLAUDE_INTERNAL_FC_OVERRIDES
22
23function restoreEnvVar(key: string, value: string | undefined): void {
24 if (value === undefined) {
25 delete process.env[key]
26 } else {
27 process.env[key] = value
28 }
29}
30
31function setGrowthBookOverrides(overrides: Record<string, unknown>): void {
32 process.env.USER_TYPE = 'ant'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected