Use computed properties instead of separate getter methods
This commit is contained in:
parent
f76721d7fe
commit
904d04d71c
5 changed files with 44 additions and 62 deletions
|
|
@ -850,7 +850,7 @@ public class PasswordStore {
|
|||
guard keyring.keys.count > 0 else {
|
||||
throw AppError.PGPPublicKeyNotExistError
|
||||
}
|
||||
let plainData = password.getPlainData()
|
||||
let plainData = password.plainData
|
||||
let encryptedData = try ObjectivePGP.encrypt(plainData, addSignature: false, using: keyring.keys, passphraseForKey: nil)
|
||||
if SharedDefaults[.encryptInArmored] {
|
||||
return Armor.armored(encryptedData, as: .message).data(using: .utf8)!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue