Skip to content

Commit

Permalink
No need to check uploaded count when only uploading archived file (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinfish committed Nov 1, 2019
1 parent 840b7c0 commit 86e879e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ public final int execute() throws WAStorageException {
} catch (IOException | InterruptedException e) {
throw new WAStorageException(e.getMessage(), e);
}
if (filesUploaded.get() != filesNeedUpload) {
if (serviceData.getUploadType() != UploadType.ZIP && filesUploaded.get() != filesNeedUpload) {
throw new WAStorageException(String.format("Only %d/%d files are successfully uploaded.",
filesUploaded.get(), filesNeedUpload));
}
Expand Down

0 comments on commit 86e879e

Please sign in to comment.