Skip to content

Commit

Permalink
Use guard instead of if
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklyp committed Sep 25, 2023
1 parent ff4dd4c commit 9b9c1f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}
Expand Down

0 comments on commit 9b9c1f5

Please sign in to comment.