Skip to content

Commit d15186c

Browse files
Removed the unneeded optional
1 parent de99ef8 commit d15186c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BitwardenShared/Core/Platform/Services/AuthenticatorSyncService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ actor DefaultAuthenticatorSyncService: NSObject, AuthenticatorSyncService {
2525
private let authBridgeItemService: AuthenticatorBridgeItemService
2626

2727
/// The Tasks listening for Cipher updates (one for each user, indexed by the userId).
28-
private var cipherPublisherTasks = [String: Task<Void, Error>?]()
28+
private var cipherPublisherTasks = [String: Task<Void, Error>]()
2929

3030
/// The service used to manage syncing and updates to the user's ciphers.
3131
private let cipherDataStore: CipherDataStore
@@ -183,7 +183,7 @@ actor DefaultAuthenticatorSyncService: NSObject, AuthenticatorSyncService {
183183
private func determineSyncForUserId(_ userId: String) async throws {
184184
guard try await stateService.getSyncToAuthenticator(userId: userId),
185185
!vaultTimeoutService.isLocked(userId: userId) else {
186-
cipherPublisherTasks[userId]??.cancel()
186+
cipherPublisherTasks[userId]?.cancel()
187187
cipherPublisherTasks.removeValue(forKey: userId)
188188
return
189189
}

0 commit comments

Comments
 (0)