mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
fix optional return type bug
This commit is contained in:
parent
82e6d7cbf6
commit
79533bb25c
@ -54,7 +54,7 @@ public class OpDef extends OpTemplate {
|
|||||||
public Optional<Map<String, Object>> getOp() {
|
public Optional<Map<String, Object>> getOp() {
|
||||||
Object op = rawStmtDef.getOp();
|
Object op = rawStmtDef.getOp();
|
||||||
if (op == null) {
|
if (op == null) {
|
||||||
return null;
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
HashMap<String, Object> newmap = new LinkedHashMap<>();
|
HashMap<String, Object> newmap = new LinkedHashMap<>();
|
||||||
if (op instanceof Map) {
|
if (op instanceof Map) {
|
||||||
|
Loading…
Reference in New Issue
Block a user