From e8f5def579ab921a95a918e6f3e8b1ec47ceb0da Mon Sep 17 00:00:00 2001 From: Lorenz Date: Fri, 15 Jul 2022 21:27:26 +0200 Subject: code cleanup --- src/main/java/at/hannibal2/skyhanni/utils/MultiFilter.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/MultiFilter.kt b/src/main/java/at/hannibal2/skyhanni/utils/MultiFilter.kt index ddb8e4a73..39b2a012e 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/MultiFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/MultiFilter.kt @@ -20,9 +20,7 @@ class MultiFilter { private fun fill(jsonObject: JsonObject, key: String, list: MutableList) { if (jsonObject.has(key)) { - for (element in jsonObject[key].asJsonArray) { - list.add(element.asString) - } + list.addAll(jsonObject[key].asJsonArray.map { it.asString }) } } -- cgit