Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Apr 26, 2019
1 parent 2b984b9 commit 696d664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/S2_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ S2_download = function(url, destfile, zip = TRUE, skipExisting = TRUE, progressB
success[i] = TRUE
},
warning = function(w) {
if (file.exists(destfile[i])) {
unlink(destfile[i])
}
if (all(w$message == 'Operation was aborted by an application callback')) {
if (file.exists(destfile[i])) {
unlink(destfile[i])
}
breakLoop <<- TRUE
}
},
Expand Down

0 comments on commit 696d664

Please sign in to comment.