Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriesen committed Jun 7, 2024
1 parent 3b1ffd7 commit eaa0108
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,16 @@ private boolean isEmptyRequest(final QueryRequest q) {
}

private boolean isQueryEmpty(final QueryRequest q) {
return q.query().getTag() == null && notNull(q.query().getTags()).isEmpty()
&& q.query().getAttribute() == null && notNull(q.query().getAttributes()).isEmpty()
&& q.query().getMeta() == null && StringUtils.isEmpty(q.query().getText());
return isTagsEmpty(q) && isAttributesEmpty(q) && q.query().getMeta() == null
&& StringUtils.isEmpty(q.query().getText());
}

private boolean isAttributesEmpty(final QueryRequest q) {
return q.query().getAttribute() == null && notNull(q.query().getAttributes()).isEmpty();
}

private boolean isTagsEmpty(final QueryRequest q) {
return q.query().getTag() == null && notNull(q.query().getTags()).isEmpty();
}

private void validateMultiTags(final List<SearchTagCriteria> tags,
Expand Down

0 comments on commit eaa0108

Please sign in to comment.