Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
PasinduYeshan committed Aug 2, 2023
1 parent 4e69ab2 commit e9368f5
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -943,12 +943,11 @@ private List<Map<String, String>> transformMembersAttributeToMap(MultiValuedAttr

if (!subAttributesList.containsKey(SCIMConstants.CommonSchemaConstants.VALUE) ||
!subAttributesList.containsKey(SCIMConstants.CommonSchemaConstants.DISPLAY)) {
throw new BadRequestException(ResponseCodeConstants.DESC_BAD_REQUEST,
ResponseCodeConstants.INVALID_SYNTAX);
} else if (StringUtils.isEmpty(((SimpleAttribute)
throw new BadRequestException(ResponseCodeConstants.INVALID_SYNTAX);
}
else if (StringUtils.isEmpty(((SimpleAttribute)
subAttributesList.get(SCIMConstants.CommonSchemaConstants.VALUE)).getStringValue())) {
throw new BadRequestException(ResponseCodeConstants.DESC_BAD_REQUEST,
ResponseCodeConstants.INVALID_VALUE);
throw new BadRequestException(ResponseCodeConstants.INVALID_VALUE);
}

Map<String, String> member = new HashMap<>();
Expand Down

0 comments on commit e9368f5

Please sign in to comment.