(destDir, publishedDigests)
| 360 | } |
| 361 | |
| 362 | function removeOwnedPublishedBinary(destDir, publishedDigests) { |
| 363 | for (const name of [WINDOWS_BINARY_NAME]) { |
| 364 | const digest = publishedDigests.get(name); |
| 365 | const target = path.join(destDir, name); |
| 366 | if (digest && pathMatchesDigest(target, digest)) { |
| 367 | try { fs.unlinkSync(target); } catch (_) { /* recovery continues below */ } |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | function restoreBinaryBackups(destDir, backups) { |
| 373 | for (const name of [WINDOWS_BINARY_NAME]) { |
no test coverage detected