MCPcopy Index your code
hub / github.com/garrytan/gstack / removeStateFile

Function removeStateFile

design/src/daemon-state.ts:107–113  ·  view source on GitHub ↗
(stateFile: string = resolveStateFilePath())

Source from the content-addressed store, hash-verified

105}
106
107export function removeStateFile(stateFile: string = resolveStateFilePath()): void {
108 try {
109 fs.unlinkSync(stateFile);
110 } catch {
111 // already gone
112 }
113}
114
115export interface HealthOk {
116 ok: true;

Callers 1

gracefulShutdownFunction · 0.90

Calls 1

resolveStateFilePathFunction · 0.85

Tested by

no test coverage detected