fix #540, duplicate entries in auto fill extension (#593)

* fix #540, duplicate entries in auto fill extension

`prepareCredentialList` is called twice, once before unlock and once
after. If the lists are already prepared, i.e. not empty, skip this
step.

* fix format and lint
This commit is contained in:
Tony Wang 2023-01-20 03:39:05 +08:00 committed by GitHub
parent 31c6541f9e
commit 51ad0c2920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View file

@ -192,7 +192,7 @@ public func yubiKeyDecrypt(
extension Data {
struct HexEncodingOptions: OptionSet {
let rawValue: Int
static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
static let upperCase = Self(rawValue: 1 << 0)
}
func hexEncodedString(options: HexEncodingOptions = []) -> String {