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 pgpKeyID: String?
|
||||||
public var publicKey: Key? {
|
public var publicKey: Key? {
|
||||||
didSet {
|
didSet {
|
||||||
if publicKey != nil {
|
pgpKeyID = publicKey?.keyID.shortIdentifier
|
||||||
pgpKeyID = publicKey!.keyID.shortIdentifier
|
|
||||||
} else {
|
|
||||||
pgpKeyID = nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public var privateKey: Key?
|
public var privateKey: Key?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue