@@ -69,7 +69,7 @@ - (nullable FSTMaybeDocument *)documentForKey:(const DocumentKey &)key {
69
69
70
70
// Internal version of documentForKey: which allows reusing `batches`.
71
71
- (nullable FSTMaybeDocument *)documentForKey : (const DocumentKey &)key
72
- inBatches : (NSArray <FSTMutationBatch *> *)batches {
72
+ inBatches : (NSArray <FSTMutationBatch *> *)batches {
73
73
FSTMaybeDocument *_Nullable remoteDoc = [self .remoteDocumentCache entryForKey: key];
74
74
return [self localDocument: remoteDoc key: key inBatches: batches];
75
75
}
@@ -164,7 +164,7 @@ - (FSTDocumentDictionary *)documentsMatchingCollectionQuery:(FSTQuery *)query {
164
164
*/
165
165
- (nullable FSTMaybeDocument *)localDocument : (nullable FSTMaybeDocument *)document
166
166
key : (const DocumentKey &)documentKey
167
- inBatches : (NSArray <FSTMutationBatch *> *)batches {
167
+ inBatches : (NSArray <FSTMutationBatch *> *)batches {
168
168
for (FSTMutationBatch *batch in batches) {
169
169
document = [batch applyTo: document documentKey: documentKey];
170
170
}
@@ -191,8 +191,7 @@ - (FSTDocumentDictionary *)localDocuments:(FSTDocumentDictionary *)documents {
191
191
__block FSTDocumentDictionary *result = documents;
192
192
[documents enumerateKeysAndObjectsUsingBlock: ^(FSTDocumentKey *key, FSTDocument *remoteDocument,
193
193
BOOL *stop) {
194
- FSTMaybeDocument *mutatedDoc =
195
- [self localDocument: remoteDocument key: key inBatches: batches];
194
+ FSTMaybeDocument *mutatedDoc = [self localDocument: remoteDocument key: key inBatches: batches];
196
195
if ([mutatedDoc isKindOfClass: [FSTDeletedDocument class ]]) {
197
196
result = [result dictionaryByRemovingObjectForKey: key];
198
197
} else if ([mutatedDoc isKindOfClass: [FSTDocument class ]]) {
0 commit comments