Skip to content

Commit

Permalink
fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Jun 28, 2024
1 parent 64077c8 commit 0789dc7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import javax.inject.Singleton
@Singleton
class GeocoderHelper @Inject constructor(private val geocoder: Geocoder) {

@Suppress("TooGenericExceptionCaught")
fun getGeoLocatedAddress(location: Location): GeoLocatedAddress =
try {
geocoder.getFromLocation(location.latitude, location.longitude, 1).orEmpty()
Expand Down

0 comments on commit 0789dc7

Please sign in to comment.