Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Merge nested if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jsokolowskii committed Dec 5, 2022
1 parent ed14744 commit 76347aa
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ private void processJsonVar(Object jsonVar, Map<String, Object> results) {
}

private void processLongJsonVar(Object longJsonVar, Map<String, Object> results) {
if (longJsonVar instanceof LinkedHashMap) {
if (((LinkedHashMap<?, ?>) longJsonVar).get("verylongjson").toString().length() >= 4000) {
results.put("test_long_json_variable_result", "able to read long json");
}
if (longJsonVar instanceof LinkedHashMap &&
((LinkedHashMap<?, ?>) longJsonVar).get("verylongjson").toString().length() >= 4000) {
results.put("test_long_json_variable_result", "able to read long json");
}
}

Expand Down

0 comments on commit 76347aa

Please sign in to comment.