Skip to content

Commit 44f698e

Browse files
author
Praful Makani
committed
updated code
1 parent 79e3ad9 commit 44f698e

File tree

1 file changed

+1
-1
lines changed
  • google-cloud-clients/google-cloud-datastore/src/main/java/com/google/cloud/datastore

1 file changed

+1
-1
lines changed

google-cloud-clients/google-cloud-datastore/src/main/java/com/google/cloud/datastore/QueryResultsImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ private void sendRequest() {
7575
if (mostRecentQueryPb == null) {
7676
mostRecentQueryPb = requestPb.getQuery();
7777
}
78-
lastBatch = runQueryResponsePb.getBatch().getMoreResults() != MoreResultsType.NOT_FINISHED;
7978
moreResults = runQueryResponsePb.getBatch().getMoreResults();
79+
lastBatch = moreResults != MoreResultsType.NOT_FINISHED;
8080
entityResultPbIter = runQueryResponsePb.getBatch().getEntityResultsList().iterator();
8181
actualResultType = ResultType.fromPb(runQueryResponsePb.getBatch().getEntityResultType());
8282
if (Objects.equals(queryResultType, ResultType.PROJECTION_ENTITY)) {

0 commit comments

Comments
 (0)