Skip to content

Commit

Permalink
Merge pull request #148 from JetBrains/fix/XD-984-adhere-iterator-con…
Browse files Browse the repository at this point in the history
…tract

fix/XD-984-adhere-iterator-contract
  • Loading branch information
laa committed Apr 29, 2024
2 parents 860073f + 28c8646 commit 9da8353
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class OQueryEntityIterator(private val source: Iterator<Entity>) : EntityIterato
}
}

override fun next(): Entity? {
override fun next(): Entity {
return source.next()
}

Expand All @@ -61,7 +61,7 @@ class OQueryEntityIterator(private val source: Iterator<Entity>) : EntityIterato
}

override fun nextId(): EntityId? {
return next()?.id
return next().id
}

override fun dispose(): Boolean {
Expand Down

0 comments on commit 9da8353

Please sign in to comment.