(infoPath: string)
| 43 | } |
| 44 | |
| 45 | function readDaemonInfo(infoPath: string): DaemonInfo | null { |
| 46 | try { |
| 47 | return JSON.parse(fs.readFileSync(infoPath, 'utf8')) as DaemonInfo; |
| 48 | } catch { |
| 49 | return null; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | function removeIfPresent(filePath: string): void { |
| 54 | try { |
no test coverage detected