Skip to content

Commit 67cef8d

Browse files
Comment changes
1 parent c54a809 commit 67cef8d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/firestore/src/core/view.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export class View {
103103
* Computes the initial set of document changes based on the provided
104104
* documents.
105105
*
106-
* Unlike `computeDocChanges`, documents that already have committed mutation
107-
* don't raise `hasPendingWrites`. This distinction allows us to only raise
106+
* Unlike `computeDocChanges`, documents with committed mutations don't raise
107+
* `hasPendingWrites`. This distinction allows us to only raise
108108
* `hasPendingWrite` events for documents that changed during the lifetime of
109109
* the View.
110110
*
@@ -294,9 +294,9 @@ export class View {
294294
};
295295
}
296296

297-
private shouldWaitForRemoteVersion(oldDoc, newDoc) {
297+
private shouldWaitForRemoteVersion(oldDoc, newDoc) : boolean {
298298
// We suppress the initial change event for documents that were
299-
// modified as part of write acknowledgment (e.g. when the value of
299+
// modified as part of a write acknowledgment (e.g. when the value of
300300
// a server transform is applied) as Watch will send us the same
301301
// document again.
302302
// By suppressing the event, we only raise two user visible events

packages/firestore/src/local/local_store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ export class LocalStore {
496496
'Ignoring outdated watch update for ',
497497
key,
498498
'. Current version:',
499-
existingDoc!.version,
499+
existingDoc.version,
500500
' Watch version:',
501501
doc.version
502502
);

0 commit comments

Comments
 (0)