Detekt: enable rule exceptions.SwallowedException and fix existing issue.

This commit is contained in:
Benoit Marty 2025-12-05 09:45:23 +01:00
parent a9afa59053
commit 72b3decf4c
16 changed files with 20 additions and 20 deletions

View file

@ -71,7 +71,7 @@ class DefaultPinCodeManager(
lockScreenStore.onWrongPin()
}
}
} catch (failure: Throwable) {
} catch (_: Throwable) {
false
}
}

View file

@ -112,7 +112,7 @@ fun EventDebugInfoView(
private fun prettyJSON(maybeJSON: String): String {
return try {
JSONObject(maybeJSON).toString(2)
} catch (e: JSONException) {
} catch (_: JSONException) {
// Prefer not pretty-printing over crashing if the data is not actually JSON
maybeJSON
}