Browse Source

Add missing return statement

Ben Hsieh 8 years ago
parent
commit
3d235554f3
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+ 1
- 0
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java View File

548
             File source = new File(src);
548
             File source = new File(src);
549
             if(!source.exists()) {
549
             if(!source.exists()) {
550
                 promise.reject("RNFetchBlob.slice error", "source file : " + src + " not exists");
550
                 promise.reject("RNFetchBlob.slice error", "source file : " + src + " not exists");
551
+                return;
551
             }
552
             }
552
             long size = source.length();
553
             long size = source.length();
553
             long max = Math.min(size, end);
554
             long max = Math.min(size, end);