(quarantineDir: string, lockDir: string)
| 67 | } |
| 68 | |
| 69 | async function restoreQuarantinedLockDir(quarantineDir: string, lockDir: string): Promise<void> { |
| 70 | try { |
| 71 | await fs.rename(quarantineDir, lockDir); |
| 72 | } catch { |
| 73 | // Another contender may already have acquired the lock. Leave the quarantined |
| 74 | // directory intact rather than deleting a lock we could not validate. |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | async function shouldRecoverLockDir( |
| 79 | lockDir: string, |
no outgoing calls
no test coverage detected