( storeRoot: string )
| 358 | } |
| 359 | |
| 360 | export async function readOptionalStoreMetadataState( |
| 361 | storeRoot: string |
| 362 | ): Promise<StoreMetadataState | null> { |
| 363 | try { |
| 364 | return await readStoreMetadataState(storeRoot); |
| 365 | } catch (error) { |
| 366 | if (isFileNotFoundError(error)) { |
| 367 | return null; |
| 368 | } |
| 369 | |
| 370 | throw error; |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | export async function writeStoreMetadataState( |
| 375 | storeRoot: string, |
no test coverage detected