Skip to content

Commit cf213ef

Browse files
committed
added missing ! in ChildAccessor.isEmpty
1 parent 9e0bd4d commit cf213ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metamodel-runtime/src/commonMain/kotlin/org/modelix/metamodel/ChildAccessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ abstract class ChildAccessor<ChildT : ITypedNode>(
1111
protected val childConcept: IConcept,
1212
protected val childType: KClass<ChildT>,
1313
): Iterable<ChildT> {
14-
fun isEmpty(): Boolean = iterator().hasNext()
14+
fun isEmpty(): Boolean = !iterator().hasNext()
1515

1616
fun getSize(): Int {
1717
return this.count()

0 commit comments

Comments
 (0)