suppress generic exception handling warnings

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-06-10 10:58:33 +02:00
parent 3c4714f716
commit 71bffc0ea8
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,7 @@ class GeocodingController(args: Bundle) :
return true
}
@Suppress("Detekt.TooGenericExceptionCaught")
private suspend fun executeGeocodingRequest() {
var results: ArrayList<Address> = ArrayList()
try {

View File

@ -136,6 +136,7 @@ class LocationPickerController(args: Bundle) :
initMap()
}
@Suppress("Detekt.TooGenericExceptionCaught")
override fun onDetach(view: View) {
super.onDetach(view)
try {
@ -430,6 +431,7 @@ class LocationPickerController(args: Bundle) :
return true
}
@Suppress("Detekt.TooGenericExceptionCaught")
private suspend fun executeGeocodingRequest(lat: Double, lon: Double) {
var address: Address? = null
try {