@@ -302,7 +302,7 @@ static void RCTStorageDirectoryMigrate(NSString *oldDirectoryPath,
302
302
// this folder and attempt folder copying again
303
303
if (error != nil && error.code == 4 &&
304
304
[newDirectoryPath isEqualToString: RCTGetStorageDirectory ()]) {
305
- NSError * error = nil ;
305
+ error = nil ;
306
306
_createStorageDirectory (RCTCreateStorageDirectoryPath (@" " ), &error);
307
307
if (error == nil ) {
308
308
RCTStorageDirectoryMigrate (
@@ -559,7 +559,7 @@ - (NSDictionary *)_ensureSetup
559
559
return nil ;
560
560
}
561
561
562
- - (NSDictionary *)_writeManifest : (NSMutableArray <NSDictionary *> **)errors
562
+ - (NSDictionary *)_writeManifest : (NSMutableArray <NSDictionary *> *__autoreleasing *)errors
563
563
{
564
564
NSError *error;
565
565
NSString *serialized = RCTJSONStringify (_manifest, &error);
@@ -587,7 +587,7 @@ - (NSDictionary *)_appendItemForKey:(NSString *)key
587
587
return errorOut;
588
588
}
589
589
590
- - (NSString *)_getValueForKey : (NSString *)key errorOut : (NSDictionary **)errorOut
590
+ - (NSString *)_getValueForKey : (NSString *)key errorOut : (NSDictionary *__autoreleasing *)errorOut
591
591
{
592
592
NSString *value =
593
593
_manifest[key]; // nil means missing, null means there may be a data file, else: NSString
@@ -699,14 +699,14 @@ - (BOOL)_passthroughDelegate
699
699
}
700
700
}
701
701
702
- NSDictionary *errorOut = [self _ensureSetup ];
703
- if (errorOut ) {
704
- callback (@[@[errorOut ], (id )kCFNull ]);
702
+ NSDictionary *ensureSetupErrorOut = [self _ensureSetup ];
703
+ if (ensureSetupErrorOut ) {
704
+ callback (@[@[ensureSetupErrorOut ], (id )kCFNull ]);
705
705
return ;
706
706
}
707
707
[self _multiGet: keys
708
708
callback: callback
709
- getter: ^(NSUInteger i, NSString *key, NSDictionary **errorOut) {
709
+ getter: ^(__unused NSUInteger i, NSString *key, NSDictionary **errorOut) {
710
710
return [self _getValueForKey: key errorOut: errorOut];
711
711
}];
712
712
}
0 commit comments