Fix quality issue.
This commit is contained in:
parent
44baa4a383
commit
5269b9787e
2 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue