mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 21:05:23 +00:00
Minor cleanup in NodeInfo.groovy
This commit is a minor cleanup of a code block in NodeInfo.groovy. We remove an unused variable, make the formatting of the code consistent, and cast a property that is typed as an Object to a String to avoid an annoying IDE warning.
This commit is contained in:
parent
b883e1217f
commit
9125684d86
@ -165,13 +165,12 @@ class NodeInfo {
|
||||
args.add("${esScript}")
|
||||
}
|
||||
|
||||
final String javaHome
|
||||
if (nodeVersion.before("6.2.0")) {
|
||||
env = ['JAVA_HOME':"${-> getJavaHome(project, 8, "JAVA8_HOME must be set to run BWC tests against [" + nodeVersion + "]")}"]
|
||||
env = ['JAVA_HOME': "${-> getJavaHome(project, 8, "JAVA8_HOME must be set to run BWC tests against [" + nodeVersion + "]")}"]
|
||||
} else if (nodeVersion.onOrAfter("6.2.0") && nodeVersion.before("6.3.0")) {
|
||||
env = ['JAVA_HOME':"${-> getJavaHome(project, 9, "JAVA9_HOME must be set to run BWC tests against [" + nodeVersion + "]")}"]
|
||||
env = ['JAVA_HOME': "${-> getJavaHome(project, 9, "JAVA9_HOME must be set to run BWC tests against [" + nodeVersion + "]")}"]
|
||||
} else {
|
||||
env = ['JAVA_HOME':project.runtimeJavaHome]
|
||||
env = ['JAVA_HOME': (String) project.runtimeJavaHome]
|
||||
}
|
||||
|
||||
args.addAll("-E", "node.portsfile=true")
|
||||
|
Loading…
x
Reference in New Issue
Block a user