remove fallback behavior

this logic should not be relevant anywhere
This commit is contained in:
Lysann Tranvouez 2026-03-11 16:10:08 +01:00
parent e69e590e36
commit 9e3e3d1134
2 changed files with 4 additions and 65 deletions

View file

@ -60,13 +60,8 @@ public class PGPAgent {
throw AppError.decryption
}
var keyID = keyID
if !pgpInterface.containsPrivateKey(with: keyID) {
if pgpInterface.keyID.count == 1 {
keyID = pgpInterface.keyID.first!
} else {
throw AppError.pgpPrivateKeyNotFound(keyID: keyID)
}
throw AppError.pgpPrivateKeyNotFound(keyID: keyID)
}
// Remember the previous status and set the current status