mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-10-27 02:07:16 +00:00
hotfixes
This commit is contained in:
@@ -106,9 +106,9 @@ class KeyValueStore<T : Any> internal constructor (
|
||||
|
||||
override suspend fun getAll(): Map<String, T> {
|
||||
val resultMap = mutableMapOf<String, T>()
|
||||
sharedPreferences.all.forEach { (k, v) ->
|
||||
for ((k, v) in sharedPreferences.all) {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
resultMap[k] = (v as? T) ?: return@forEach
|
||||
resultMap[k] = (v as? T) ?: continue
|
||||
}
|
||||
return resultMap.toMap()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user