Skip to content

Commit 8d4ba51

Browse files
committed
remove behaviour change
1 parent bfd5385 commit 8d4ba51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cursor/abstract_cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export abstract class AbstractCursor<
412412

413413
/** Get the next available document from the cursor, returns null if no more documents are available. */
414414
async next(): Promise<TSchema | null> {
415-
if (this.cursorId === Long.ZERO && (this.documents?.length ?? 0) === 0) {
415+
if (this.cursorId === Long.ZERO) {
416416
throw new MongoCursorExhaustedError();
417417
}
418418

0 commit comments

Comments
 (0)