mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Remove another pair of keyed subscript access instances
This commit is contained in:
@@ -125,7 +125,7 @@ static RKManagedObjectStore *defaultStore = nil;
|
||||
NSDictionary *options = nil;
|
||||
if (nilOrOptions) {
|
||||
NSMutableDictionary *mutableOptions = [nilOrOptions mutableCopy];
|
||||
mutableOptions[RKSQLitePersistentStoreSeedDatabasePathOption] = seedPath ?: [NSNull null];
|
||||
[mutableOptions setObject:(seedPath ?: [NSNull null]) forKey:RKSQLitePersistentStoreSeedDatabasePathOption];
|
||||
options = mutableOptions;
|
||||
} else {
|
||||
options = @{ RKSQLitePersistentStoreSeedDatabasePathOption: (seedPath ?: [NSNull null]),
|
||||
|
||||
@@ -190,8 +190,8 @@ NSString * const RKMappingTestVerificationFailureException = @"RKMappingTestVeri
|
||||
reason:(NSString *)reason
|
||||
{
|
||||
NSMutableDictionary *fullUserInfo = [userInfo mutableCopy];
|
||||
fullUserInfo[NSLocalizedDescriptionKey] = description;
|
||||
fullUserInfo[NSLocalizedFailureReasonErrorKey] = reason;
|
||||
[fullUserInfo setObject:description forKey:NSLocalizedDescriptionKey];
|
||||
[fullUserInfo setObject:reason forKey:NSLocalizedFailureReasonErrorKey];
|
||||
return [NSError errorWithDomain:RKMappingTestErrorDomain code:errorCode userInfo:fullUserInfo];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user