This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f7edf3  Remove useless curly braces and use already defined constant
1f7edf3 is described below

commit 1f7edf3f4fd759cdd376cd6ab18f07b63af6914b
Author: Felix Schumacher <[email protected]>
AuthorDate: Fri Aug 16 22:03:07 2019 +0200

    Remove useless curly braces and use already defined constant
---
 src/core/src/main/java/org/apache/jmeter/control/IfController.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/core/src/main/java/org/apache/jmeter/control/IfController.java 
b/src/core/src/main/java/org/apache/jmeter/control/IfController.java
index a73d747..c855121 100644
--- a/src/core/src/main/java/org/apache/jmeter/control/IfController.java
+++ b/src/core/src/main/java/org/apache/jmeter/control/IfController.java
@@ -81,9 +81,8 @@ public class IfController extends GenericController 
implements Serializable, Thr
             getInstance().getEngineByName(NASHORN_ENGINE_NAME) == null;
 
 
-    private static final ThreadLocal<ScriptEngine> NASHORN_ENGINE = 
ThreadLocal.withInitial(() -> {
-        return getInstance().getEngineByName("nashorn");//$NON-NLS-N$
-    });
+    private static final ThreadLocal<ScriptEngine> NASHORN_ENGINE = ThreadLocal
+            .withInitial(() -> 
getInstance().getEngineByName(NASHORN_ENGINE_NAME));
 
     private interface JsEvaluator {
         boolean evaluate(String testElementName, String condition);

Reply via email to