Skip to content

Commit

Permalink
Supress too generic exception catch
Browse files Browse the repository at this point in the history
  • Loading branch information
m-zagorski committed Oct 29, 2024
1 parent 3d3910e commit 6057208
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class LocationPickerHelper @Inject constructor(
timeoutJob.start()
}

@Suppress("TooGenericExceptionCaught")
internal fun isLocationServicesEnabled(): Boolean {
return try {
val locationManager = context.getSystemService(Context.LOCATION_SERVICE) as LocationManager
Expand Down

0 comments on commit 6057208

Please sign in to comment.