Skip to content

Commit 8cc5d4a

Browse files
authored
Clean up code (#3959)
1 parent 4bd380f commit 8cc5d4a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/local/IndexBackfillerTest.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ public void testBackfillWritesOldestDocumentFirst() {
165165
backfiller.setMaxDocumentsToProcess(2);
166166

167167
addFieldIndex("coll1", "foo");
168-
Target target = query("coll1").orderBy(orderBy("foo")).toTarget();
169168
addDoc("coll1/docA", version(5), "foo", 1);
170169
addDoc("coll1/docB", version(3), "foo", 1);
171170
addDoc("coll1/docC", version(10), "foo", 1);
@@ -186,7 +185,6 @@ public void testBackfillUsesDocumentKeyOffsetForLargeSnapshots() {
186185
backfiller.setMaxDocumentsToProcess(2);
187186

188187
addFieldIndex("coll1", "foo");
189-
Target target = query("coll1").orderBy(orderBy("foo")).toTarget();
190188
addDoc("coll1/docA", version(1), "foo", 1);
191189
addDoc("coll1/docB", version(1), "foo", 1);
192190
addDoc("coll1/docC", version(1), "foo", 1);
@@ -363,7 +361,7 @@ public void testBackfillUpdatesExistingDocToNewValue() {
363361

364362
// Update doc to new remote version with new value.
365363
addDoc("coll/doc", version(40), "foo", 2);
366-
documentsProcessed = backfiller.backfill();
364+
backfiller.backfill();
367365

368366
verifyQueryResults(queryA, "coll/doc");
369367
}

0 commit comments

Comments
 (0)