Skip to content

Commit

Permalink
Consider moving optional unwrapping to the if
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Apr 25, 2024
1 parent c46eef6 commit fae4542
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/Identity/CustomerInfoManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,9 @@ class CustomerInfoManager {
let lastSentCustomerInfo = $0.lastSentCustomerInfo

if #available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *) {
if lastSentCustomerInfo != customerInfo {
if let tracker = self.diagnosticsTracker, lastSentCustomerInfo != customerInfo {
Task {
await self.diagnosticsTracker?.trackCustomerInfoVerificationResultIfNeeded(customerInfo,
timestamp: Date())
await tracker.trackCustomerInfoVerificationResultIfNeeded(customerInfo, timestamp: Date())
}
}
}
Expand Down

0 comments on commit fae4542

Please sign in to comment.