mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Merge try blocks.
This commit is contained in:
+2
-7
@@ -46,16 +46,11 @@ class DefaultUserCertificatesProvider @Inject constructor() : UserCertificatesPr
|
|||||||
Timber.w(e, "Failed to get AndroidCAStore keystore")
|
Timber.w(e, "Failed to get AndroidCAStore keystore")
|
||||||
return emptyList()
|
return emptyList()
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
keyStore.load(null)
|
|
||||||
} catch (e: Exception) {
|
|
||||||
Timber.w(e, "Failed to load AndroidCAStore keystore")
|
|
||||||
return emptyList()
|
|
||||||
}
|
|
||||||
val aliases = try {
|
val aliases = try {
|
||||||
|
keyStore.load(null)
|
||||||
keyStore.aliases()
|
keyStore.aliases()
|
||||||
} catch (e: Exception) {
|
} 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 emptyList()
|
||||||
}
|
}
|
||||||
return aliases.toList()
|
return aliases.toList()
|
||||||
|
|||||||
Reference in New Issue
Block a user