Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Remove extra deletion call.
Browse files Browse the repository at this point in the history
If there are no CheckIns, the SyncTool will have deleted all matches already.
  • Loading branch information
d4rken committed Apr 7, 2021
1 parent 4ee8314 commit 3b0acf3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ class PresenceTracingWarningTask @Inject constructor(
Timber.tag(TAG).d("There are %d check-ins to match against.", checkIns.size)

if (checkIns.isEmpty()) {
Timber.tag(TAG).i("No check-ins available. Deleting all matches.")
presenceTracingRiskRepository.deleteAllMatches()

Timber.tag(TAG).i("No check-ins available. We are done.")
presenceTracingRiskRepository.reportCalculation(successful = true)

return Result(calculatedAt = nowUTC)
Expand Down

0 comments on commit 3b0acf3

Please sign in to comment.