Do not remap cursor when reading to a collection.

This commit is contained in:
Cody Henthorne
2026-09-04 14:13:46 -04:00
committed by GitHub
parent 30e2c3e57d
commit e760512352
@@ -155,7 +155,7 @@ inline fun <T> Cursor.readToList(predicate: (T) -> Boolean = { true }, mapper: (
while (moveToNext()) {
val record = mapper(this)
if (predicate(record)) {
list += mapper(this)
list += record
}
}
}
@@ -190,7 +190,7 @@ inline fun <T> Cursor.readToSet(predicate: (T) -> Boolean = { true }, mapper: (C
while (moveToNext()) {
val record = mapper(this)
if (predicate(record)) {
set += mapper(this)
set += record
}
}
}