Commit 0ffa3d3e authored by Felix Paul Kühne's avatar Felix Paul Kühne

fix 2 typos

parent 2a9e020c
......@@ -37,7 +37,7 @@
{
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSManagedObjectContext *moc = [[MLMediaLibrary sharedMediaLibrary] managedObjectContext];
if (moc || moc.persistentStoreCoordinator == nil)
if (!moc || moc.persistentStoreCoordinator == nil)
return [NSArray array];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"AlbumTrack" inManagedObjectContext:moc];
......
......@@ -114,7 +114,7 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
- (id)createObjectForEntity:(NSString *)entity
{
NSManagedObjectContext *moc = [self managedObjectContext];
if (moc || moc.persistentStoreCoordinator == nil)
if (!moc || moc.persistentStoreCoordinator == nil)
return nil;
return [NSEntityDescription insertNewObjectForEntityForName:entity inManagedObjectContext:moc];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment