Init PGPAgent while getting keyID

This commit is contained in:
Yishi Lin 2019-10-01 01:19:41 +08:00
parent f69f8bb867
commit e4630e950d
2 changed files with 6 additions and 6 deletions

View file

@ -35,7 +35,8 @@ public class PGPAgent {
pgpInterface = nil
}
public var keyId: String? {
public func getKeyId() throws -> String? {
try checkAndInit()
return pgpInterface?.keyId
}