Skip to content

Commit 4b126b7

Browse files
author
Brian Chen
authored
Rename value to other in RelationFilter (#1844)
1 parent bdfcd6c commit 4b126b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/firestore/src/core/query.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -533,18 +533,18 @@ export class RelationFilter extends Filter {
533533
}
534534
}
535535

536-
private matchesValue(value: FieldValue): boolean {
536+
private matchesValue(other: FieldValue): boolean {
537537
if (this.op === RelationOp.ARRAY_CONTAINS) {
538538
return (
539-
value instanceof ArrayValue &&
540-
value.internalValue.find(element => element.isEqual(this.value)) !==
539+
other instanceof ArrayValue &&
540+
other.internalValue.find(element => element.isEqual(this.value)) !==
541541
undefined
542542
);
543543
} else {
544544
// Only compare types with matching backend order (such as double and int).
545545
return (
546-
this.value.typeOrder === value.typeOrder &&
547-
this.matchesComparison(value.compareTo(this.value))
546+
this.value.typeOrder === other.typeOrder &&
547+
this.matchesComparison(other.compareTo(this.value))
548548
);
549549
}
550550
}

0 commit comments

Comments
 (0)