diff --git a/DuckDuckGo/AppDelegate.swift b/DuckDuckGo/AppDelegate.swift index f791692b69..9f347056c7 100644 --- a/DuckDuckGo/AppDelegate.swift +++ b/DuckDuckGo/AppDelegate.swift @@ -391,9 +391,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let store = FailedCompilationsStore() if store.hasAnyFailures { DailyPixel.fire(pixel: .compilationFailed, withAdditionalParameters: store.summary) { error in - if error == nil { - store.cleanup() - } + guard error != nil else { return } + store.cleanup() } } }