File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -648,7 +648,7 @@ export class ChangeStream<
648
648
hasNext ( callback ?: Callback ) : Promise < boolean > | void {
649
649
this . _setIsIterator ( ) ;
650
650
return maybeCallback ( async ( ) => {
651
- for ( ; ; ) {
651
+ while ( true ) {
652
652
try {
653
653
const hasNext = await this . cursor . hasNext ( ) ;
654
654
return hasNext ;
@@ -675,7 +675,7 @@ export class ChangeStream<
675
675
next ( callback ?: Callback < TChange > ) : Promise < TChange > | void {
676
676
this . _setIsIterator ( ) ;
677
677
return maybeCallback ( async ( ) => {
678
- for ( ; ; ) {
678
+ while ( true ) {
679
679
try {
680
680
const change = await this . cursor . next ( ) ;
681
681
const processedChange = this . _processChange ( change ?? null ) ;
@@ -705,7 +705,7 @@ export class ChangeStream<
705
705
tryNext ( callback ?: Callback < Document | null > ) : Promise < Document | null > | void {
706
706
this . _setIsIterator ( ) ;
707
707
return maybeCallback ( async ( ) => {
708
- for ( ; ; ) {
708
+ while ( true ) {
709
709
try {
710
710
const change = await this . cursor . tryNext ( ) ;
711
711
return change ?? null ;
You can’t perform that action at this time.
0 commit comments