Skip to content

Commit 60db81d

Browse files
Lint
1 parent 679c0c4 commit 60db81d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/firestore/src/core/target.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ export function targetGetArrayValues(
238238
return fieldFilter.value.arrayValue!.values || [];
239239
case Operator.ARRAY_CONTAINS:
240240
return [fieldFilter.value];
241+
default:
242+
// Remaining filters are not array filters.
241243
}
242244
}
243245
return null;
@@ -271,6 +273,8 @@ export function targetGetNotInValues(
271273
// NotIn/NotEqual is always a suffix
272274
values.push(fieldFilter.value);
273275
return values;
276+
default:
277+
// Remaining filters cannot be used as notIn bounds.
274278
}
275279
}
276280
}

packages/firestore/test/unit/model/target.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ describe('Target Bounds', () => {
376376
bound: Bound | null,
377377
inclusive: boolean,
378378
...values: unknown[]
379-
) {
379+
): void {
380380
expect(bound).to.not.be.null;
381381
expect(!bound!.before).to.equal(inclusive, 'inclusive');
382382
const position = bound!.position;

0 commit comments

Comments
 (0)