Skip to content

Commit 8e9947d

Browse files
apophizzzPatrick Kleindienst
andauthored
Use isEmpty for size check & fix missing noun reported by spell check (#358)
Co-authored-by: Patrick Kleindienst <[email protected]>
1 parent c179b1a commit 8e9947d

File tree

1 file changed

+2
-2
lines changed
  • ktoml-core/src/commonMain/kotlin/com/akuleshov7/ktoml/tree/nodes

1 file changed

+2
-2
lines changed

ktoml-core/src/commonMain/kotlin/com/akuleshov7/ktoml/tree/nodes/TomlNode.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public sealed class TomlNode(
5757
)
5858

5959
/**
60-
* @return true if has no children
60+
* @return true if node has no children
6161
*/
62-
public fun hasNoChildren(): Boolean = children.size == 0
62+
public fun hasNoChildren(): Boolean = children.isEmpty()
6363

6464
/**
6565
* @return first child or null

0 commit comments

Comments
 (0)