Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
PasinduYeshan committed Nov 19, 2023
1 parent 49fcf4f commit 9641138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ private void validateRequiredAttributes(List<String> requiredAttributeList) thro
* @param apiResourceCollection API Resource Collection.
* @return API Resource read write map.
*/
private APIResourceMap buildAPIResourceMap(
APIResourceCollection apiResourceCollection) {
private APIResourceMap buildAPIResourceMap(APIResourceCollection apiResourceCollection) {

List<APIResourceCollectionItem> readAPIResourceCollectionItems = getAPIResourceCollectionItems(
apiResourceCollection, APIResourceCollectionManagementConstants.READ);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static APIError handleAPIResourceCollectionMgtException(APIResourceCollec
} else {
LOG.error(e.getMessage(), e);
}
String errorCode = e.getErrorCode(); //TODO: Update this
String errorCode = e.getErrorCode();
errorCode = errorCode.contains(ERROR_CODE_DELIMITER) ? errorCode :
APIResourceMgtEndpointConstants.API_RESOURCE_MANAGEMENT_PREFIX + errorCode;
return handleException(status, errorCode, e.getMessage(), e.getDescription());
Expand Down

0 comments on commit 9641138

Please sign in to comment.