We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13f572e + 7422f62 commit 070c0eaCopy full SHA for 070c0ea
Firestore/Source/Core/FSTFirestoreClient.mm
@@ -253,9 +253,11 @@ - (void)writeMutations:(NSArray<FSTMutation *> *)mutations
253
completion:(nullable FSTVoidErrorBlock)completion {
254
[self.workerDispatchQueue dispatchAsync:^{
255
if (mutations.count == 0) {
256
- [self.userDispatchQueue dispatchAsync:^{
257
- completion(nil);
258
- }];
+ if (completion) {
+ [self.userDispatchQueue dispatchAsync:^{
+ completion(nil);
259
+ }];
260
+ }
261
} else {
262
[self.syncEngine writeMutations:mutations
263
completion:^(NSError *error) {
0 commit comments