Browse Source

Make conditional clearer

Ryan Ernst 10 years ago
parent
commit
a23c5b8bbc

+ 1 - 1
core/src/main/java/org/elasticsearch/search/fetch/innerhits/InnerHitsParseElement.java

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