[F] Fix hasNext

This commit is contained in:
Azalea Gui
2023-01-29 14:57:38 -05:00
parent 5354ce80e1
commit 164fb71946
@@ -152,7 +152,7 @@ object Database {
class CursorIterator(val c: Cursor) : Iterator<Cursor>
{
override fun hasNext() = !c.isAfterLast
override fun hasNext() = !c.isLast && !c.isAfterLast
override fun next() = c.apply { moveToNext() }
}