We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c179b1a commit 8e9947dCopy full SHA for 8e9947d
ktoml-core/src/commonMain/kotlin/com/akuleshov7/ktoml/tree/nodes/TomlNode.kt
@@ -57,9 +57,9 @@ public sealed class TomlNode(
57
)
58
59
/**
60
- * @return true if has no children
+ * @return true if node has no children
61
*/
62
- public fun hasNoChildren(): Boolean = children.size == 0
+ public fun hasNoChildren(): Boolean = children.isEmpty()
63
64
65
* @return first child or null
0 commit comments