Browse Source

Update PomDocument.kt

pull/5148/head
GeorgCantor 2 months ago committed by GitHub
parent
commit
f6a084c0fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      build-helpers/publishing/src/main/kotlin/org/jetbrains/compose/internal/publishing/utils/PomDocument.kt

6
build-helpers/publishing/src/main/kotlin/org/jetbrains/compose/internal/publishing/utils/PomDocument.kt

@ -135,11 +135,7 @@ internal class PomDocument(file: File) {
}
private fun Node.children(): List<Node> {
val result = ArrayList<Node>(childNodes.length)
for (i in 0 until childNodes.length) {
result.add(childNodes.item(i))
}
return result
return (0 until childNodes.length).map { childNodes.item(it) }
}
private fun List<Node>.asMap(): Map<String, Node> =

Loading…
Cancel
Save