Skip to content

Commit 2d45742

Browse files
committed
format
1 parent 20b436a commit 2d45742

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/firestore/src/remote/watch_change.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ import { logDebug } from '../util/log';
3535
import { primitiveComparator } from '../util/misc';
3636
import { SortedMap } from '../util/sorted_map';
3737
import { SortedSet } from '../util/sorted_set';
38-
import { BloomFilter } from './bloom_filter';
3938

39+
import { BloomFilter } from './bloom_filter';
4040
import { ExistenceFilter } from './existence_filter';
4141
import { RemoteEvent, TargetChange } from './remote_event';
4242

@@ -451,7 +451,9 @@ export class WatchChangeAggregator {
451451
const normalizedBitmap = normalizeByteString(bitmap).toUint8Array();
452452
const bloomFilter = new BloomFilter(normalizedBitmap, padding, hashCount);
453453

454-
if (bloomFilter.size === 0) return false;
454+
if (bloomFilter.size === 0) {
455+
return false;
456+
}
455457

456458
const removedDocumentCount = this.filterRemovedDocuments(
457459
bloomFilter,

packages/firestore/test/unit/specs/limit_spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ describeSpec('Limits:', [], () => {
433433
// we receive an existence filter, which indicates that our view is
434434
// out of sync.
435435
.watchSends({ affects: [limitQuery] }, secondDocument)
436-
.watchFilters([limitQuery], [secondDocument.key],{
436+
.watchFilters([limitQuery], [secondDocument.key], {
437437
bits: { bitmap: 'Ag==', padding: 6 },
438438
hashCount: 1
439439
})

0 commit comments

Comments
 (0)