diff options
author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 21:27:26 +0200 |
---|---|---|
committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 21:27:26 +0200 |
commit | e8f5def579ab921a95a918e6f3e8b1ec47ceb0da (patch) | |
tree | a38bf96f035c22a249fb898e8a029ce2d6a994fd /src/main/java/at | |
parent | 5457ff7723bcc10437cbea4a3104b0a6b1f088de (diff) | |
download | skyhanni-e8f5def579ab921a95a918e6f3e8b1ec47ceb0da.tar.gz skyhanni-e8f5def579ab921a95a918e6f3e8b1ec47ceb0da.tar.bz2 skyhanni-e8f5def579ab921a95a918e6f3e8b1ec47ceb0da.zip |
code cleanup
Diffstat (limited to 'src/main/java/at')
-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 }) } } |