Name classes/structs consistently

This commit is contained in:
Danny Moesch 2020-04-19 15:41:30 +02:00 committed by Mingshen Sun
parent 072f824158
commit 4c2693e2c7
11 changed files with 80 additions and 80 deletions

View file

@ -11,7 +11,7 @@ public class PGPAgent {
public static let shared: PGPAgent = PGPAgent()
private let keyStore: KeyStore
private var pgpInterface: PgpInterface?
private var pgpInterface: PGPInterface?
private var latestDecryptStatus: Bool = true
public init(keyStore: KeyStore = AppKeychain.shared) {
@ -25,9 +25,9 @@ public class PGPAgent {
throw AppError.KeyImport
}
do {
pgpInterface = try GopenPgp(publicArmoredKey: publicKey, privateArmoredKey: privateKey)
pgpInterface = try GopenPGPInterface(publicArmoredKey: publicKey, privateArmoredKey: privateKey)
} catch {
pgpInterface = try ObjectivePgp(publicArmoredKey: publicKey, privateArmoredKey: privateKey)
pgpInterface = try ObjectivePGPInterface(publicArmoredKey: publicKey, privateArmoredKey: privateKey)
}
}