aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Model/FSTDocument.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/Model/FSTDocument.mm
parentff95ffc61b6c6cf4b8ec69183d35e08497fbfd1a (diff)
Eliminate unnecessary DocumentKey->FSTDocumentKey conversions (#1507)
Diffstat (limited to 'Firestore/Source/Model/FSTDocument.mm')
-rw-r--r--Firestore/Source/Model/FSTDocument.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Firestore/Source/Model/FSTDocument.mm b/Firestore/Source/Model/FSTDocument.mm
index 376075e..f96552c 100644
--- a/Firestore/Source/Model/FSTDocument.mm
+++ b/Firestore/Source/Model/FSTDocument.mm
@@ -102,7 +102,7 @@ NS_ASSUME_NONNULL_BEGIN
}
FSTDocument *otherDoc = other;
- return [self.key isEqual:otherDoc.key] && self.version == otherDoc.version &&
+ return self.key == otherDoc.key && self.version == otherDoc.version &&
[self.data isEqual:otherDoc.data] && self.hasLocalMutations == otherDoc.hasLocalMutations;
}
@@ -142,7 +142,7 @@ NS_ASSUME_NONNULL_BEGIN
}
FSTDocument *otherDoc = other;
- return [self.key isEqual:otherDoc.key] && self.version == otherDoc.version;
+ return self.key == otherDoc.key && self.version == otherDoc.version;
}
- (NSUInteger)hash {