Prune a record only once nothing of it is left behind

This commit is contained in:
Arkadiusz Fal
2026-09-08 22:23:30 +02:00
parent 92a8777e0a
commit f1e034111c
10 changed files with 441 additions and 52 deletions

View File

@@ -243,7 +243,8 @@ extension PipedCredentialsManager: AccountCredentialsManager {
accountCredentials.migrateCredential(forAccountID: accountID, fromScope: sourceScope)
}
func deleteCredential(forAccountID accountID: UUID, inScope scope: String) {
@discardableResult
func deleteCredential(forAccountID accountID: UUID, inScope scope: String) -> Bool {
accountCredentials.deleteCredential(forAccountID: accountID, inScope: scope)
}