Skip to content

Commit 57d1bf9

Browse files
committed
Move call to readUserData for code readability
1 parent 076236e commit 57d1bf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/firestore/src/lite-api/pipeline.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ export class Pipeline<AppModelType = DocumentData> {
316316
*/
317317
where(condition: FilterCondition & Expr): Pipeline<AppModelType> {
318318
const copy = this.stages.map(s => s);
319-
copy.push(new Where(this.readUserData('where', condition)));
319+
this.readUserData('where', condition);
320+
copy.push(new Where(condition));
320321
return new Pipeline(
321322
this.liteDb,
322323
this.userDataReader,

0 commit comments

Comments
 (0)