Skip to content

Commit 6b88a47

Browse files
Fix browser tests
1 parent aa5c523 commit 6b88a47

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

packages/firestore/src/local/indexeddb_index_manager.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,7 @@ export class IndexedDbIndexManager implements IndexManager {
362362
indexRanges.push(
363363
...this.createRange(
364364
lowerBound,
365-
/* lowerInclusive= */ true,
366365
upperBound,
367-
/* upperInclusive= */ false,
368366
notInValues.map(
369367
(
370368
notIn // make non-nullable
@@ -857,9 +855,7 @@ export class IndexedDbIndexManager implements IndexManager {
857855
*/
858856
private createRange(
859857
lower: IndexEntry,
860-
lowerInclusive: boolean,
861858
upper: IndexEntry,
862-
upperInclusive: boolean,
863859
notInValues: IndexEntry[]
864860
): IDBKeyRange[] {
865861
// The notIb values need to be sorted and unique so that we can return a
@@ -884,11 +880,7 @@ export class IndexedDbIndexManager implements IndexManager {
884880
// `notInValue` is in the middle of the range
885881
bounds.push(notInValue);
886882
bounds.push(notInValue.successor());
887-
} else if (cmpToUpper === 0) {
888-
// `notInValue` is the upper value. We therefore need to exclude the
889-
// upper bound.
890-
upperInclusive = false;
891-
} else {
883+
} else if (cmpToUpper > 0) {
892884
// `notInValue` (and all following values) are out of the range
893885
break;
894886
}
@@ -912,9 +904,7 @@ export class IndexedDbIndexManager implements IndexManager {
912904
bounds[i + 1].arrayValue,
913905
bounds[i + 1].directionalValue,
914906
''
915-
],
916-
!lowerInclusive,
917-
!upperInclusive
907+
]
918908
)
919909
);
920910
}

0 commit comments

Comments
 (0)