Fix ImageEditingManager when no external cache

Summary:`externalCacheDir == null && externalCacheDir == null` is obviously a typo in existing code.
Closes https://github.com/facebook/react-native/pull/6429

Differential Revision: D3184362

fb-gh-sync-id: 1cd966ed96414348c4319d44679d2c912df6cc93
fbshipit-source-id: 1cd966ed96414348c4319d44679d2c912df6cc93
This commit is contained in:
Gaëtan Renaudeau 2016-04-15 04:50:32 -07:00 committed by Facebook Github Bot 7
parent 75992e700d
commit fffcb9c88a
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ public class ImageEditingManager extends ReactContextBaseJavaModule {
File externalCacheDir = context.getExternalCacheDir();
File internalCacheDir = context.getCacheDir();
File cacheDir;
if (externalCacheDir == null && externalCacheDir == null) {
if (externalCacheDir == null && internalCacheDir == null) {
throw new IOException("No cache directory available");
}
if (externalCacheDir == null) {