Skip to content

Commit

Permalink
combine asserts
Browse files Browse the repository at this point in the history
Signed-off-by: mikhail-khludnev <[email protected]>
  • Loading branch information
mikhail-khludnev committed Nov 14, 2024
1 parent fa14302 commit f522622
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ public Query termQuery(Object value, @Nullable QueryShardContext context) {

private Query indexOrDvQuery(Query pointQuery, Query dvQuery) {
if (isSearchable() && hasDocValues()) {
assert pointQuery != null;
assert dvQuery != null;
assert pointQuery != null && dvQuery != null;
return new IndexOrDocValuesQuery(pointQuery, dvQuery);
} else {
if (isSearchable()) {
Expand Down

0 comments on commit f522622

Please sign in to comment.