( registryPath: string, expectedWorkspaceKey?: string, )
| 143 | } |
| 144 | |
| 145 | function readValidRegistryEntryAtPath( |
| 146 | registryPath: string, |
| 147 | expectedWorkspaceKey?: string, |
| 148 | ): DaemonRegistryEntry | null { |
| 149 | const result = readRegistryEntryAtPath(registryPath, expectedWorkspaceKey); |
| 150 | return result.status === 'valid' ? result.entry : null; |
| 151 | } |
| 152 | |
| 153 | function writeFileAtomicSync(filePath: string, content: string): void { |
| 154 | const dir = dirname(filePath); |
no test coverage detected