Skip to content

Commit

Permalink
Reviewer comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Oct 18, 2024
1 parent bcefa3b commit ef378d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SIL.Machine/Corpora/ParallelTextCorpus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -576,15 +576,16 @@ public bool MoveNext()
return false;
}

bool result = _enumerator.MoveNext();
_enumeratorHasMoreData = _enumerator.MoveNext();
_current = _enumerator.Current;
return result;
return _enumeratorHasMoreData;
}

public void Reset()
{
_enumerator.Reset();
_isEnumerating = false;
_enumeratorHasMoreData = true;
}

protected override void DisposeManagedResources()
Expand Down

0 comments on commit ef378d3

Please sign in to comment.