fix optional return type bug

This commit is contained in:
Jonathan Shook 2022-01-05 15:33:34 -06:00
parent 82e6d7cbf6
commit 79533bb25c

View File

@ -54,7 +54,7 @@ public class OpDef extends OpTemplate {
public Optional<Map<String, Object>> getOp() {
Object op = rawStmtDef.getOp();
if (op == null) {
return null;
return Optional.empty();
}
HashMap<String, Object> newmap = new LinkedHashMap<>();
if (op instanceof Map) {