Skip to content

Commit

Permalink
GEODE-7772: Simplify hasNext in PageableLuceneQueryResultsImpl (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevo authored Feb 7, 2020
1 parent 9c102e4 commit 93aa3c4
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,8 @@ private List<LuceneResultStruct<K, V>> advancePage() {

@Override
public boolean hasNext() {

advancePage();
if (currentPage.isEmpty()) {
return false;
}
return true;
return !currentPage.isEmpty();
}

@Override
Expand Down

0 comments on commit 93aa3c4

Please sign in to comment.