We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b2e9a2 commit a39ced3Copy full SHA for a39ced3
packages/firestore/test/util/api_helpers.ts
@@ -82,9 +82,7 @@ export function documentSnapshot(
82
fromCache: boolean,
83
hasPendingWrites?: boolean
84
): DocumentSnapshot {
85
- if (hasPendingWrites === undefined) {
86
- hasPendingWrites = false;
87
- }
+ hasPendingWrites = !!hasPendingWrites;
88
const db = firestore();
89
const userDataWriter = new ExpUserDataWriter(db);
90
if (data) {
0 commit comments