Skip to content

Commit 5f20480

Browse files
Correct download_dist_check_md5 function
1 parent bc45cb5 commit 5f20480

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/java_download.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ java_download <- function(
3333
) {
3434

3535
# Download distribution and check MD5 checksum
36-
download_dist_check_md5 <- function(url, dest_file, md5sum, md5sum_expectedm, quiet) {
36+
download_dist_check_md5 <- function(url, dest_file, quiet) {
3737

3838
curl::curl_download(url, dest_file, quiet = FALSE)
3939
curl::curl_download(url_md5, dest_file_md5, quiet = TRUE)
@@ -132,9 +132,9 @@ java_download <- function(
132132
cli::cli_inform("Removing existing installation.", .envir = environment())
133133
}
134134
file.remove(dest_file)
135-
download_dist_check_md5(url, dest_file, md5sum, md5sum_expectedm, quiet)
135+
download_dist_check_md5(url, dest_file, quiet)
136136
} else if (!file.exists(dest_file)) {
137-
download_dist_check_md5(url, dest_file, md5sum, md5sum_expectedm, quiet)
137+
download_dist_check_md5(url, dest_file, quiet)
138138
}
139139

140140
return(dest_file)

0 commit comments

Comments
 (0)