Skip to content

Commit

Permalink
fix main class
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Dec 17, 2024
1 parent 6c08a53 commit 05cdcc7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions loader/src/main/java/lucee/runtime/script/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public static void main(final String args[]) throws Exception {
final int dialect = CFMLEngine.DIALECT_CFML;
if (code == null) printUsage("-e is missing", System.err);

final LuceeScriptEngineFactory factory = new LuceeScriptEngineFactory();
System.out.println(factory.getScriptEngine().eval(code));

final ScriptEngine engine = new ScriptEngineManager().getEngineByName(lang);
if (engine == null) System.out.println("could not load an engine with the name:" + lang);
else System.out.println(engine.eval(code));
Expand Down

0 comments on commit 05cdcc7

Please sign in to comment.