Skip to content

Commit 33a5cd3

Browse files
committed
Remove unnecessary conditional
1 parent fb8e639 commit 33a5cd3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -947,14 +947,12 @@ class BuildPlugin implements Plugin<Project> {
947947
'-XX:+HeapDumpOnOutOfMemoryError',
948948
"-XX:HeapDumpPath=$heapdumpDir"
949949

950+
jvmArgs System.getProperty('tests.jvm.argline', '').split(" ")
951+
950952
if (project.runtimeJavaVersion >= JavaVersion.VERSION_1_9) {
951953
jvmArgs '--illegal-access=warn'
952954
}
953955

954-
if (System.getProperty('tests.jvm.argline')) {
955-
jvmArgs System.getProperty('tests.jvm.argline').split(" ")
956-
}
957-
958956
if (Boolean.parseBoolean(System.getProperty('tests.asserts', 'true'))) {
959957
jvmArgs '-ea', '-esa'
960958
}

0 commit comments

Comments
 (0)