Skip to content

Commit

Permalink
Update AnkiDroid/src/main/java/com/ichi2/anki/CrashReportService.kt
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Hardy <[email protected]>
  • Loading branch information
voczi and mikehardy authored Nov 9, 2024
1 parent 3e124d4 commit 7e99a7c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions AnkiDroid/src/main/java/com/ichi2/anki/CrashReportService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,8 @@ object CrashReportService {
)

// Apply each and every rule in throwableRules on the original Throwable.
// This means that after this method call, we can get an Throwable that has the username and
// email of the user filtered out so it doesn't get sent to ACRA as is.
// If the method returns null, that means we do not send a report to ACRA at all as we have
// decided to block this based on some arbitrary rule(s) enforced on the throwable' contents.
// Either alters Throwable.message via rules so it is safe for ACRA or returns null if
// the Throwable cannot be made safe for ACRA and should just be discarded
@VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
fun processThrowable(e: Throwable): Throwable? {
var newE: Throwable? = e
Expand Down

0 comments on commit 7e99a7c

Please sign in to comment.