Make conditional clearer

This commit is contained in:
Ryan Ernst 2015-06-15 23:59:09 -07:00
parent 5601cea083
commit a23c5b8bbc
1 changed files with 1 additions and 1 deletions

View File

@ -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);