Permalink
Browse files

Fix static analyzer warning

  • Loading branch information...
1 parent 59c449c commit 1dc765c774aacbae3e3f14210016927d357eb6dc @blakewatters blakewatters committed May 24, 2012
Showing with 5 additions and 8 deletions.
  1. +5 −8 Code/UI/RKFetchedResultsTableController.m
@@ -234,8 +234,7 @@ - (void)loadTable {
} else {
fetchRequest = _fetchRequest;
}
- NSAssert(fetchRequest != nil, @"Attempted to load RKFetchedResultsTableController with nil fetchRequest for resourcePath %@, fetchRequest %@",
- _resourcePath, _fetchRequest);
+ NSAssert(fetchRequest != nil, @"Attempted to load RKFetchedResultsTableController with nil fetchRequest for resourcePath %@, fetchRequest %@", _resourcePath, _fetchRequest);
if (_predicate) {
[fetchRequest setPredicate:_predicate];
@@ -244,12 +243,10 @@ - (void)loadTable {
[fetchRequest setSortDescriptors:_sortDescriptors];
}
- self.fetchedResultsController =
- [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest
- managedObjectContext:[NSManagedObjectContext contextForCurrentThread]
- sectionNameKeyPath:_sectionNameKeyPath
- cacheName:_cacheName];
- [_fetchedResultsController release];
+ _fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest
+ managedObjectContext:[NSManagedObjectContext contextForCurrentThread]
+ sectionNameKeyPath:_sectionNameKeyPath
+ cacheName:_cacheName];
_fetchedResultsController.delegate = self;
// Perform the load

0 comments on commit 1dc765c

Please sign in to comment.