aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-15 21:27:26 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-15 21:27:26 +0200
commite8f5def579ab921a95a918e6f3e8b1ec47ceb0da (patch)
treea38bf96f035c22a249fb898e8a029ce2d6a994fd /src/main
parent5457ff7723bcc10437cbea4a3104b0a6b1f088de (diff)
downloadskyhanni-e8f5def579ab921a95a918e6f3e8b1ec47ceb0da.tar.gz
skyhanni-e8f5def579ab921a95a918e6f3e8b1ec47ceb0da.tar.bz2
skyhanni-e8f5def579ab921a95a918e6f3e8b1ec47ceb0da.zip
code cleanup
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/MultiFilter.kt4
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 })
}
}