Fix quality issue.
This commit is contained in:
committed by
Benoit Marty
parent
44baa4a383
commit
5269b9787e
+1
@@ -37,6 +37,7 @@ class KeyStoreSecretKeyRepository(
|
||||
) : SecretKeyRepository {
|
||||
private val hasKeyMap = ConcurrentHashMap<String, MutableStateFlow<Boolean>>()
|
||||
|
||||
@Suppress("RunCatchingNotAllowed")
|
||||
override fun hasKey(alias: String): Flow<Boolean> {
|
||||
return hasKeyMap.getOrPut(alias) {
|
||||
MutableStateFlow(runCatching { keyStore.containsAlias(alias) }.getOrDefault(false))
|
||||
|
||||
Reference in New Issue
Block a user