Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklyp committed Dec 19, 2024
1 parent c0ad1b2 commit 88a7dc8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions DuckDuckGo/AppLifecycle/AppStates/Background.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,24 @@ struct DoubleBackground: AppState {
}

if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
if let didReceiveMemoryWarningTimestamp = appDelegate.didReceiveMemoryWarningTimestamp, isValid(timestamp: didReceiveMemoryWarningTimestamp) {
if let didReceiveMemoryWarningTimestamp = appDelegate.didReceiveMemoryWarningTimestamp,
isValid(timestamp: didReceiveMemoryWarningTimestamp) {
parameters[PixelParameters.didReceiveMemoryWarningTimestamp] = dateFormatter.string(from: didReceiveMemoryWarningTimestamp)
}
if let didReceiveMXPayloadTimestamp = appDelegate.didReceiveMXPayloadTimestamp, isValid(timestamp: didReceiveMXPayloadTimestamp) {
if let didReceiveMXPayloadTimestamp = appDelegate.didReceiveMXPayloadTimestamp,
isValid(timestamp: didReceiveMXPayloadTimestamp) {
parameters[PixelParameters.didReceiveMXPayloadTimestamp] = dateFormatter.string(from: didReceiveMXPayloadTimestamp)
}
if let didReceiveUNNotification = appDelegate.didReceiveUNNotification, isValid(timestamp: didReceiveUNNotification) {
if let didReceiveUNNotification = appDelegate.didReceiveUNNotification,
isValid(timestamp: didReceiveUNNotification) {
parameters[PixelParameters.didReceiveUNNotification] = dateFormatter.string(from: didReceiveUNNotification)
}
if let didStartRemoteMessagingClientBackgroundTask = appDelegate.didStartRemoteMessagingClientBackgroundTask, isValid(timestamp: didStartRemoteMessagingClientBackgroundTask) {
if let didStartRemoteMessagingClientBackgroundTask = appDelegate.didStartRemoteMessagingClientBackgroundTask,
isValid(timestamp: didStartRemoteMessagingClientBackgroundTask) {
parameters[PixelParameters.didStartRemoteMessagingClientBackgroundTask] = dateFormatter.string(from: didStartRemoteMessagingClientBackgroundTask)
}
if let didStartAppConfigurationFetchBackgroundTask = appDelegate.didStartAppConfigurationFetchBackgroundTask, isValid(timestamp: didStartAppConfigurationFetchBackgroundTask) {
if let didStartAppConfigurationFetchBackgroundTask = appDelegate.didStartAppConfigurationFetchBackgroundTask,
isValid(timestamp: didStartAppConfigurationFetchBackgroundTask) {
parameters[PixelParameters.didStartAppConfigurationFetchBackgroundTask] = dateFormatter.string(from: didStartAppConfigurationFetchBackgroundTask)
}
}
Expand Down

0 comments on commit 88a7dc8

Please sign in to comment.