Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dewniMW committed Oct 22, 2023
1 parent f44a3b9 commit 0bc17e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private void setExpressionNodeList(Node node, List<ExpressionNode> expression) t
String operation = expressionNode.getOperation();

if (StringUtils.isNotBlank(attributeValue)) {
if (isFilteringAttributeNotSupported(attributeValue)) {
if (!isFilteringAttributeSupported(attributeValue)) {
throw handleClientException(ERROR_CODE_UNSUPPORTED_FILTER_ATTRIBUTE, attributeValue);
}
if (!SUPPORTED_OPERATIONS.contains(operation)) {
Expand All @@ -273,8 +273,8 @@ private void setExpressionNodeList(Node node, List<ExpressionNode> expression) t
}
}

private boolean isFilteringAttributeNotSupported(String attributeValue) {
private boolean isFilteringAttributeSupported(String attributeValue) {

return !attributeValue.equalsIgnoreCase(ORGANIZATION_NAME);
return ORGANIZATION_NAME.equalsIgnoreCase(attributeValue);
}
}

0 comments on commit 0bc17e1

Please sign in to comment.