diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/MultiFilter.kt | 4 |
1 files changed, 1 insertions, 3 deletions
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<String>) { if (jsonObject.has(key)) { - for (element in jsonObject[key].asJsonArray) { - list.add(element.asString) - } + list.addAll(jsonObject[key].asJsonArray.map { it.asString }) } } |