Skip to content

Commit 0349c04

Browse files
committed
fix: remove empty expression check in evaluate methods of ExpressionParser
1 parent a9553d5 commit 0349c04

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/java/mindustrytool/workflow/expressions/ExpressionParser.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,6 @@ public <T> T evaluate(Class<T> type, String expr, Map<String, Object> variables)
197197
}
198198
}
199199
}
200-
if (stack.isEmpty()) {
201-
throw new WorkflowError("Empty expression: " + expr);
202-
}
203-
204200
var result = stack.pop();
205201

206202
if (result == null) {

0 commit comments

Comments
 (0)