From 88a7dc8a1573b46b33b6f0c410479b6724a82c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20=C5=81yp?= Date: Thu, 19 Dec 2024 16:25:14 +0100 Subject: [PATCH] Fix formatting --- .../AppLifecycle/AppStates/Background.swift | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/DuckDuckGo/AppLifecycle/AppStates/Background.swift b/DuckDuckGo/AppLifecycle/AppStates/Background.swift index c1663eb9a9..4170df4ba6 100644 --- a/DuckDuckGo/AppLifecycle/AppStates/Background.swift +++ b/DuckDuckGo/AppLifecycle/AppStates/Background.swift @@ -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) } }