Browse Source

Remove unnecessary code

Ben Hsieh 8 years ago
parent
commit
a3a44d3fd3
2 changed files with 2 additions and 2 deletions
  1. 2
    1
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
  2. 0
    1
      src/index.js

+ 2
- 1
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java View File

345
                     }
345
                     }
346
                     catch (SocketTimeoutException e ){
346
                     catch (SocketTimeoutException e ){
347
                         timeout = true;
347
                         timeout = true;
348
+                        RNFetchBlobUtils.emitWarningEvent("RNFetchBlob error when sending request : " + e.getLocalizedMessage());
348
                     } catch(Exception ex) {
349
                     } catch(Exception ex) {
349
-                        RNFetchBlobUtils.emitWarningEvent("RNFetchBlob error when sending request : " + ex.getLocalizedMessage());
350
+
350
                     }
351
                     }
351
                     return chain.proceed(chain.request());
352
                     return chain.proceed(chain.request());
352
                 }
353
                 }

+ 0
- 1
src/index.js View File

136
   let total = -1
136
   let total = -1
137
   let cacheData = ''
137
   let cacheData = ''
138
   let info = null
138
   let info = null
139
-  let {x,y} = a.props
140
   let _progress, _uploadProgress, _stateChange
139
   let _progress, _uploadProgress, _stateChange
141
 
140
 
142
   switch(method.toLowerCase()) {
141
   switch(method.toLowerCase()) {