Skip to content

Commit a39ced3

Browse files
committed
!!hasPendingWrites
1 parent 0b2e9a2 commit a39ced3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/firestore/test/util/api_helpers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ export function documentSnapshot(
8282
fromCache: boolean,
8383
hasPendingWrites?: boolean
8484
): DocumentSnapshot {
85-
if (hasPendingWrites === undefined) {
86-
hasPendingWrites = false;
87-
}
85+
hasPendingWrites = !!hasPendingWrites;
8886
const db = firestore();
8987
const userDataWriter = new ExpUserDataWriter(db);
9088
if (data) {

0 commit comments

Comments
 (0)