We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e5173d commit 257c4b8Copy full SHA for 257c4b8
ios/RNCAsyncStorage.mm
@@ -250,7 +250,10 @@ static dispatch_queue_t RCTGetMethodQueue()
250
NSError *error;
251
[[NSFileManager defaultManager] removeItemAtPath:RCTGetStorageDirectory() error:&error];
252
RCTHasCreatedStorageDirectory = NO;
253
- return error ? RCTMakeError(@"Failed to delete storage directory.", error, nil) : nil;
+ if (error && error.code != NSFileNoSuchFileError) {
254
+ return RCTMakeError(@"Failed to delete storage directory.", error, nil);
255
+ }
256
+ return nil;
257
}
258
259
static NSDate *RCTManifestModificationDate(NSString *manifestFilePath)
0 commit comments