File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,8 @@ export function targetGetNotInValues(
270
270
break ;
271
271
case Operator . NOT_IN :
272
272
case Operator . NOT_EQUAL :
273
- // NotIn/NotEqual is always a suffix
273
+ // NotIn/NotEqual is always a suffix. There cannot be any remaining
274
+ // segments and hence we can return early here.
274
275
values . push ( fieldFilter . value ) ;
275
276
return values ;
276
277
default :
@@ -284,7 +285,7 @@ export function targetGetNotInValues(
284
285
285
286
/**
286
287
* Returns a lower bound of field values that can be used as a starting point to
287
- * scan the index defined by `fieldIndex`}` . Returns `null` if no lower bound
288
+ * scan the index defined by `fieldIndex`. Returns `null` if no lower bound
288
289
* exists.
289
290
*/
290
291
export function targetGetLowerBound (
Original file line number Diff line number Diff line change @@ -665,9 +665,7 @@ export function valuesMax(
665
665
left : Value | undefined ,
666
666
right : Value | undefined
667
667
) : Value | undefined {
668
- if ( left === undefined && right === undefined ) {
669
- return undefined ;
670
- } else if ( left === undefined ) {
668
+ if ( left === undefined ) {
671
669
return right ;
672
670
} else if ( right === undefined ) {
673
671
return left ;
@@ -680,9 +678,7 @@ export function valuesMin(
680
678
left : Value | undefined ,
681
679
right : Value | undefined
682
680
) : Value | undefined {
683
- if ( left === undefined && right === undefined ) {
684
- return undefined ;
685
- } else if ( left === undefined ) {
681
+ if ( left === undefined ) {
686
682
return right ;
687
683
} else if ( right === undefined ) {
688
684
return left ;
You can’t perform that action at this time.
0 commit comments