Address trivial eclipse warnings
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / codec / SchemaTracker.java
index 1f6adf8bf96496a94f53692d309a61d0b203f80c..18dbab2b3e67892381e85dad6237f4a5b1f11286 100644 (file)
@@ -172,12 +172,12 @@ public final class SchemaTracker {
         final Object parent = getParent();
         if (parent instanceof LeafListSchemaNode) {
             return (LeafListSchemaNode) parent;
-        } else {
-            final SchemaNode child = SchemaUtils.findChildSchemaByQName((SchemaNode) parent, qname);
-            Preconditions.checkArgument(child instanceof LeafListSchemaNode,
-                    "Node %s is neither a leaf-list nor currently in a leaf-list", child.getPath());
-            return (LeafListSchemaNode) child;
         }
+
+        final SchemaNode child = SchemaUtils.findChildSchemaByQName((SchemaNode) parent, qname);
+        Preconditions.checkArgument(child instanceof LeafListSchemaNode,
+            "Node %s is neither a leaf-list nor currently in a leaf-list", child.getPath());
+        return (LeafListSchemaNode) child;
     }
 
     public ChoiceSchemaNode startChoiceNode(final NodeIdentifier name) {