Skip to content

Commit

Permalink
simplify if condition
Browse files Browse the repository at this point in the history
Signed-off-by: Yannic Klem <Yannic.Klem@bosch.io>
  • Loading branch information
Yannic92 committed Mar 22, 2022
1 parent 9a7bd99 commit fd92b2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private static JsonValue mergeJsonValues(final JsonValue value1, final JsonValue

private static JsonObject mergeJsonObjects(final JsonObject jsonObject1, final JsonObject jsonObject2) {

if (jsonObject1.isNull() || (jsonObject1.isNull() && jsonObject2.isNull())) {
if (jsonObject1.isNull()) {
return JsonFactory.nullObject();
}

Expand Down

0 comments on commit fd92b2f

Please sign in to comment.