Skip to content

Commit 985829d

Browse files
fix codeClimate errors
1 parent 50e40f8 commit 985829d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/android/FileTransferBackground.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,10 @@ private void handleAck(final Data ackData) {
423423
long uploadDuration = finishUploadTime - startUploadTime;
424424

425425
HashMap<String, Object> uploadData = new HashMap<>();
426-
if (uploadDuration <= 0) {
427-
uploadData.put("outputId", ackData.getString(UploadTask.KEY_OUTPUT_ID));
428-
uploadData.put("response", response);
429-
uploadData.put("statusCode", ackData.getInt(UploadTask.KEY_OUTPUT_STATUS_CODE, -1));
430-
} else {
431-
uploadData.put("outputId", ackData.getString(UploadTask.KEY_OUTPUT_ID));
432-
uploadData.put("response", response);
433-
uploadData.put("statusCode", ackData.getInt(UploadTask.KEY_OUTPUT_STATUS_CODE, -1));
426+
uploadData.put("outputId", ackData.getString(UploadTask.KEY_OUTPUT_ID));
427+
uploadData.put("response", response);
428+
uploadData.put("statusCode", ackData.getInt(UploadTask.KEY_OUTPUT_STATUS_CODE, -1));
429+
if (uploadDuration > 0) {
434430
uploadData.put("uploadDuration", uploadDuration);
435431
uploadData.put("finishUploadTime", finishUploadTime);
436432
}

0 commit comments

Comments
 (0)