Update to specific kotlin syntax since Java8 and Kotlin 1.8 collide now

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-12-29 18:55:48 +01:00
parent 36744542e6
commit 0fa26cc137
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -120,8 +120,8 @@ class PollRepositoryImpl(private val ncApi: NcApi, private val currentUserProvid
private fun convertVotes(votes: Map<String, Int>?): Map<String, Int> {
val resultMap: MutableMap<String, Int> = HashMap()
votes?.forEach {
resultMap[it.key.replace("option-", "")] = it.value
votes?.forEach { (key, value) ->
resultMap[key.replace("option-", "")] = value
}
return resultMap
}