Assign nil by unwrapping optional
This commit is contained in:
parent
9e0d60989b
commit
89c0d3c98e
1 changed files with 1 additions and 5 deletions
|
|
@ -30,11 +30,7 @@ public class PasswordStore {
|
|||
public var pgpKeyID: String?
|
||||
public var publicKey: Key? {
|
||||
didSet {
|
||||
if publicKey != nil {
|
||||
pgpKeyID = publicKey!.keyID.shortIdentifier
|
||||
} else {
|
||||
pgpKeyID = nil
|
||||
}
|
||||
pgpKeyID = publicKey?.keyID.shortIdentifier
|
||||
}
|
||||
}
|
||||
public var privateKey: Key?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue