Skip to content

Commit eeb2243

Browse files
committed
Remove unnecessary null check from MemoryDocumentOverlayCache.saveOverlay(), like is done in firebase/firebase-android-sdk#3518
1 parent 5f88728 commit eeb2243

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/firestore/src/local/memory_document_overlay_cache.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,6 @@ export class MemoryDocumentOverlayCache implements DocumentOverlayCache {
152152
largestBatchId: number,
153153
mutation: Mutation
154154
): void {
155-
if (mutation === null) {
156-
return;
157-
}
158-
159155
// Remove the association of the overlay to its batch id.
160156
const existing = this.overlays.get(mutation.key);
161157
if (existing !== null) {

0 commit comments

Comments
 (0)