From e62ec940993fb0875fdf8974f7b06084863ec155 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Thu, 14 Aug 2025 20:13:44 -0700 Subject: [PATCH] Whitespace. --- Sources/SecretAgent/Notifier.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Sources/SecretAgent/Notifier.swift b/Sources/SecretAgent/Notifier.swift index 1c86ce8..b2dbd36 100644 --- a/Sources/SecretAgent/Notifier.swift +++ b/Sources/SecretAgent/Notifier.swift @@ -150,13 +150,13 @@ final class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate, Se fileprivate var pendingPersistableStores: [String: AnySecretStore] = [:] fileprivate var pendingPersistableSecrets: [String: AnySecret] = [:] } - + fileprivate let state: OSAllocatedUnfairLock = .init(uncheckedState: .init()) - + func userNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification?) { } - + func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async { let category = response.notification.request.content.categoryIdentifier switch category { @@ -190,7 +190,7 @@ final class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate, Se return } let id = response.actionIdentifier - + let (secret, store, persistOptions, callback): (AnySecret?, AnySecretStore?, TimeInterval?, State.PersistAuthentication?) = state.withLock { state in guard let secret = state.pendingPersistableSecrets[secretID], let store = state.pendingPersistableStores[storeID] @@ -202,9 +202,10 @@ final class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate, Se await callback?(secret, store, persistOptions) } - + func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification) async -> UNNotificationPresentationOptions { [.list, .banner] } } +