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,6 +548,7 @@ public class RNFetchBlobFS {
548 548
             File source = new File(src);
549 549
             if(!source.exists()) {
550 550
                 promise.reject("RNFetchBlob.slice error", "source file : " + src + " not exists");
551
+                return;
551 552
             }
552 553
             long size = source.length();
553 554
             long max = Math.min(size, end);