diff --git a/React/Modules/RCTAsyncLocalStorage.m b/React/Modules/RCTAsyncLocalStorage.m index dff7d903f..c77fac403 100644 --- a/React/Modules/RCTAsyncLocalStorage.m +++ b/React/Modules/RCTAsyncLocalStorage.m @@ -423,10 +423,8 @@ RCT_EXPORT_METHOD(multiRemove:(NSArray *)keys NSString *filePath = [self _filePathForKey:key]; [[NSFileManager defaultManager] removeItemAtPath:filePath error:nil]; [RCTGetCache() removeObjectForKey:key]; - // remove the key from manifest, but no need to mark as changed just for - // this, as the cost of checking again next time is negligible. - [_manifest removeObjectForKey:key]; - } else if (_manifest[key]) { + } + if (_manifest[key]) { changedManifest = YES; [_manifest removeObjectForKey:key]; }