(destDir, publishedDigests)
| 498 | } |
| 499 | |
| 500 | function removeOwnedPublishedBinary(destDir, publishedDigests) { |
| 501 | for (const name of [WINDOWS_BINARY_NAME]) { |
| 502 | const digest = publishedDigests.get(name); |
| 503 | const target = path.join(destDir, name); |
| 504 | if (digest && pathMatchesDigest(target, digest)) { |
| 505 | try { fs.unlinkSync(target); } catch (_) { /* recovery continues below */ } |
| 506 | } |
| 507 | } |
| 508 | } |
| 509 | |
| 510 | function restoreBinaryBackups(destDir, backups) { |
| 511 | for (const name of [WINDOWS_BINARY_NAME]) { |
no test coverage detected