(journal: MigrationJournal)
| 1314 | }; |
| 1315 | |
| 1316 | const cleanupKeychainBackups = async (journal: MigrationJournal): Promise<void> => { |
| 1317 | const keychain = makeKeychainProvider(keychainBaseServiceName()); |
| 1318 | for (const backup of journal.keychainBackups ?? []) { |
| 1319 | if (!backup.backupId) continue; |
| 1320 | await Effect.runPromise(keychain.delete!(backup.backupId as never)); |
| 1321 | } |
| 1322 | }; |
| 1323 | |
| 1324 | const cleanupSecretBackups = async (journal: MigrationJournal): Promise<void> => { |
| 1325 | await cleanupKeychainBackups(journal); |
no test coverage detected