Merge try blocks.
This commit is contained in:
parent
a3f7d55a64
commit
9fed868968
1 changed files with 2 additions and 7 deletions
|
|
@ -46,16 +46,11 @@ class DefaultUserCertificatesProvider @Inject constructor() : UserCertificatesPr
|
|||
Timber.w(e, "Failed to get AndroidCAStore keystore")
|
||||
return emptyList()
|
||||
}
|
||||
try {
|
||||
keyStore.load(null)
|
||||
} catch (e: Exception) {
|
||||
Timber.w(e, "Failed to load AndroidCAStore keystore")
|
||||
return emptyList()
|
||||
}
|
||||
val aliases = try {
|
||||
keyStore.load(null)
|
||||
keyStore.aliases()
|
||||
} catch (e: Exception) {
|
||||
Timber.w(e, "Failed to get aliases from AndroidCAStore keystore")
|
||||
Timber.w(e, "Failed to load and get aliases AndroidCAStore keystore")
|
||||
return emptyList()
|
||||
}
|
||||
return aliases.toList()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue