MCPcopy Create free account
hub / github.com/callstack/agent-device / restoreOptionalEnv

Function restoreOptionalEnv

src/utils/__tests__/exec.test.ts:338–344  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

336}
337
338function restoreOptionalEnv(key: string, value: string | undefined): void {
339 if (value === undefined) {
340 delete process.env[key];
341 return;
342 }
343 process.env[key] = value;
344}
345
346function assertBackgroundExecTraceEvents(
347 execEvents: Array<{

Callers 1

withExecTraceEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…