Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit a3a44d3

Browse files
committed
Remove unnecessary code
1 parent 1ebba13 commit a3a44d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,9 @@ public Response intercept(Chain chain) throws IOException {
345345
}
346346
catch (SocketTimeoutException e ){
347347
timeout = true;
348+
RNFetchBlobUtils.emitWarningEvent("RNFetchBlob error when sending request : " + e.getLocalizedMessage());
348349
} catch(Exception ex) {
349-
RNFetchBlobUtils.emitWarningEvent("RNFetchBlob error when sending request : " + ex.getLocalizedMessage());
350+
350351
}
351352
return chain.proceed(chain.request());
352353
}

Diff for: src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ function fetchFile(options = {}, method, url, headers = {}, body):Promise {
136136
let total = -1
137137
let cacheData = ''
138138
let info = null
139-
let {x,y} = a.props
140139
let _progress, _uploadProgress, _stateChange
141140

142141
switch(method.toLowerCase()) {

0 commit comments

Comments
 (0)