We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
java_download
1 parent d75eb92 commit 5b79cf1Copy full SHA for 5b79cf1
R/java_download.R
@@ -150,15 +150,17 @@ java_download <- function(
150
.envir = environment()
151
)
152
}
153
- } else if (file.exists(dest_file) & force) {
+ return(dest_file)
154
+ }
155
+
156
+ if (file.exists(dest_file) & force) {
157
if (!quiet) {
158
cli::cli_inform("Removing existing installation.", .envir = environment())
159
160
file.remove(dest_file)
- download_dist_check_md5(url, dest_file, quiet)
- } else if (!file.exists(dest_file)) {
161
162
163
+ download_dist_check_md5(url, dest_file, quiet)
164
165
return(dest_file)
166
0 commit comments