Skip to content

Commit

Permalink
AppCleaner: Throw error if exclusions are larger than before
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Aug 21, 2024
1 parent 7124757 commit 407d11c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ class PostProcessorModule @Inject constructor(
log(TAG) { "After checking exclusions: $after" }
}

if (after.itemCount > before.itemCount) {
throw IllegalStateException("Item count after exclusions can't be greater than before!")
}

return after
}

Expand Down

0 comments on commit 407d11c

Please sign in to comment.