remove fallback behavior
this logic should not be relevant anywhere
This commit is contained in:
parent
e69e590e36
commit
9e3e3d1134
2 changed files with 4 additions and 65 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue