KeychainHelper: Simplify lookup (#214)

This commit is contained in:
Danny Canter
2025-07-17 09:37:59 -07:00
committed by GitHub
parent 402339e248
commit 3cc638624f
@@ -30,9 +30,6 @@ public struct KeychainHelper: Sendable {
let kq = KeychainQuery()
do {
guard try kq.exists(id: self.id, host: domain) else {
throw Self.Error.keyNotFound
}
guard let fetched = try kq.get(id: self.id, host: domain) else {
throw Self.Error.keyNotFound
}