MCPcopy Index your code
hub / github.com/coder/code-server / resetValue

Function resetValue

test/utils/helpers.ts:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 // which is why we need to delete it if it's supposed to be undefined
61 // Source: https://stackoverflow.com/a/60147167
62 const resetValue = () => {
63 if (initialValue !== undefined) {
64 process.env[key] = initialValue
65 } else {
66 delete process.env[key]
67 }
68 }
69
70 return [setValue, resetValue]
71}

Callers 2

helpers.test.tsFile · 0.85
cli.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected