Pārlūkot izejas kodu

Remove unnecessary code

Ben Hsieh 8 gadus atpakaļ
vecāks
revīzija
a3a44d3fd3

+ 2
- 1
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java Parādīt failu

@@ -345,8 +345,9 @@ public class RNFetchBlobReq extends BroadcastReceiver implements Runnable {
345 345
                     }
346 346
                     catch (SocketTimeoutException e ){
347 347
                         timeout = true;
348
+                        RNFetchBlobUtils.emitWarningEvent("RNFetchBlob error when sending request : " + e.getLocalizedMessage());
348 349
                     } catch(Exception ex) {
349
-                        RNFetchBlobUtils.emitWarningEvent("RNFetchBlob error when sending request : " + ex.getLocalizedMessage());
350
+
350 351
                     }
351 352
                     return chain.proceed(chain.request());
352 353
                 }

+ 0
- 1
src/index.js Parādīt failu

@@ -136,7 +136,6 @@ function fetchFile(options = {}, method, url, headers = {}, body):Promise {
136 136
   let total = -1
137 137
   let cacheData = ''
138 138
   let info = null
139
-  let {x,y} = a.props
140 139
   let _progress, _uploadProgress, _stateChange
141 140
 
142 141
   switch(method.toLowerCase()) {