瀏覽代碼

Update RNFetchBlobReq.java

fixed scoping problem
ihavenoface5 5 年之前
父節點
當前提交
3f75d5e9c6
No account linked to committer's email address
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+ 3
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java 查看文件

591
 //                    ignored.printStackTrace();
591
 //                    ignored.printStackTrace();
592
                 }
592
                 }
593
 
593
 
594
+                RNFetchBlobFileResp rnFetchBlobFileResp;
595
+                
594
                 try {
596
                 try {
595
-                    RNFetchBlobFileResp rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
597
+                    rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
596
                 } catch (ClassCastException ex) {
598
                 } catch (ClassCastException ex) {
597
                     // unexpected response type
599
                     // unexpected response type
598
                     if (responseBody != null) {
600
                     if (responseBody != null) {