aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm
diff options
context:
space:
mode:
authorGravatar Konstantin Varlamov <var-const@users.noreply.github.com>2018-07-10 16:08:18 -0400
committerGravatar GitHub <noreply@github.com>2018-07-10 16:08:18 -0400
commit0f0a1dab2d385895fc15968cfee3df07b53c52b9 (patch)
treee61d62b40447a744b2a05319aa4e4ba74e35dbd4 /Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm
parentff95ffc61b6c6cf4b8ec69183d35e08497fbfd1a (diff)
Eliminate unnecessary DocumentKey->FSTDocumentKey conversions (#1507)
Diffstat (limited to 'Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm')
-rw-r--r--Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm b/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm
index 534d2a4..e3f917e 100644
--- a/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm
+++ b/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm
@@ -122,7 +122,7 @@ using leveldb::Status;
}
FSTMaybeDocument *maybeDocument = [self.serializer decodedMaybeDocument:proto];
- HARD_ASSERT([maybeDocument.key isEqualToKey:documentKey],
+ HARD_ASSERT(maybeDocument.key == documentKey,
"Read document has key (%s) instead of expected key (%s).",
maybeDocument.key.ToString(), documentKey.ToString());
return maybeDocument;