mirror of https://github.com/apache/lucene.git
change if to assert
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1496945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
31f7bb5262
commit
47dddb99e8
|
@ -208,9 +208,9 @@ public class DrillSideways {
|
|||
requests.add(fr);
|
||||
}
|
||||
}
|
||||
if (requests.isEmpty()) {
|
||||
throw new IllegalArgumentException("could not find FacetRequest for drill-sideways dimension \"" + dim + "\"");
|
||||
}
|
||||
// We already moved all drill-downs that didn't have a
|
||||
// FacetRequest, in moveDrillDownOnlyClauses above:
|
||||
assert !requests.isEmpty();
|
||||
drillSidewaysCollectors[idx++] = FacetsCollector.create(getDrillSidewaysAccumulator(dim, new FacetSearchParams(fsp.indexingParams, requests)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue