mirror of
https://github.com/zhigang1992/MagicalRecord.git
synced 2026-01-12 17:32:18 +08:00
Don't run completion block if non specified
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user