Skip to content

Commit

Permalink
MODOAIPMH-540: simplify the expression
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroBykov1 committed Mar 28, 2024
1 parent 53f1746 commit fe031ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ protected Future<Response> processRecords(Context ctx, Request request,
}

boolean noRecordsFoundResultCheck(Map<String, RecordType> recordsMap, JsonArray items, VerbType verb){
return (recordsMap.isEmpty() && jsonArrayIsEmpty(items)) ||
(recordsMap.isEmpty() && jsonArrayNotEmpty(items) && VerbType.GET_RECORD != verb);
return recordsMap.isEmpty() &&
(jsonArrayIsEmpty(items) || (jsonArrayNotEmpty(items) && VerbType.GET_RECORD != verb));
}

boolean conversionIntoJaxbObjectIssueCheck(Map<String, RecordType> recordsMap, JsonArray items, VerbType verb){
Expand Down

0 comments on commit fe031ed

Please sign in to comment.