Don't run completion block if non specified

This commit is contained in:
Saul Mora
2012-08-02 10:24:21 -06:00
parent 7128091566
commit 3aa2845c0c

View File

@@ -108,7 +108,10 @@
if (completion && self == [[self class] MR_rootSavingContext])
{
dispatch_async(dispatch_get_main_queue(), completion);
if (completion)
{
dispatch_async(dispatch_get_main_queue(), completion);
}
}
}];
}