@@ -362,9 +362,7 @@ export class IndexedDbIndexManager implements IndexManager {
362
362
indexRanges . push (
363
363
...this . createRange (
364
364
lowerBound ,
365
- /* lowerInclusive= */ true ,
366
365
upperBound ,
367
- /* upperInclusive= */ false ,
368
366
notInValues . map (
369
367
(
370
368
notIn // make non-nullable
@@ -857,9 +855,7 @@ export class IndexedDbIndexManager implements IndexManager {
857
855
*/
858
856
private createRange (
859
857
lower : IndexEntry ,
860
- lowerInclusive : boolean ,
861
858
upper : IndexEntry ,
862
- upperInclusive : boolean ,
863
859
notInValues : IndexEntry [ ]
864
860
) : IDBKeyRange [ ] {
865
861
// The notIb values need to be sorted and unique so that we can return a
@@ -884,11 +880,7 @@ export class IndexedDbIndexManager implements IndexManager {
884
880
// `notInValue` is in the middle of the range
885
881
bounds . push ( notInValue ) ;
886
882
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 ) {
892
884
// `notInValue` (and all following values) are out of the range
893
885
break ;
894
886
}
@@ -912,9 +904,7 @@ export class IndexedDbIndexManager implements IndexManager {
912
904
bounds [ i + 1 ] . arrayValue ,
913
905
bounds [ i + 1 ] . directionalValue ,
914
906
''
915
- ] ,
916
- ! lowerInclusive ,
917
- ! upperInclusive
907
+ ]
918
908
)
919
909
) ;
920
910
}
0 commit comments