mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Remove unnecessary retain from object loader initialization
This commit is contained in:
@@ -246,7 +246,7 @@ static NSString* const kDefaultLoadedTimeKey = @"RKRequestTTModelDefaultLoadedTi
|
||||
|
||||
if (!store.managedObjectCache || !cacheFetchRequests || _cacheLoaded ||
|
||||
([cachedObjects count] == 0 && [[RKObjectManager sharedManager] isOnline])) {
|
||||
RKObjectLoader* objectLoader = [[[RKObjectManager sharedManager] objectLoaderWithResourcePath:_resourcePath delegate:self] retain];
|
||||
RKObjectLoader* objectLoader = [[RKObjectManager sharedManager] objectLoaderWithResourcePath:_resourcePath delegate:self];
|
||||
objectLoader.method = self.method;
|
||||
objectLoader.objectClass = _objectClass;
|
||||
objectLoader.keyPath = _keyPath;
|
||||
|
||||
Reference in New Issue
Block a user