Skip to content

Commit

Permalink
fix check_jdk_version()
Browse files Browse the repository at this point in the history
  • Loading branch information
JsLth committed Nov 5, 2024
1 parent bb6a5c9 commit 840d66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/java.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
check_jdk_version <- function(min_version, quiet = FALSE) {
version <- get_java_version(quiet)

if (minimum_version(version, min_version)) {
if (!minimum_version(version, min_version)) {
msg <- c("!" = "JDK version {version} detected but version 17 required.", rje_link())
ph_stop(msg, class = "java_version_error")
}
Expand Down

0 comments on commit 840d66f

Please sign in to comment.