Make conditional clearer
This commit is contained in:
parent
5601cea083
commit
a23c5b8bbc
|
@ -158,7 +158,7 @@ public class InnerHitsParseElement implements SearchParseElement {
|
|||
if (objectMapper == null) {
|
||||
throw new IllegalArgumentException("path [" + nestedPath +"] doesn't exist");
|
||||
}
|
||||
if (!objectMapper.nested().isNested()) {
|
||||
if (objectMapper.nested().isNested() == false) {
|
||||
throw new IllegalArgumentException("path [" + nestedPath +"] isn't nested");
|
||||
}
|
||||
ObjectMapper parentObjectMapper = parseContext.nestedScope().nextLevel(objectMapper);
|
||||
|
|
Loading…
Reference in New Issue