Address trivial eclipse warnings
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / AugmentStatementImpl.java
index 8fd4e000dc88fa8a99810f775cf7438cff99c3ff..7aa513a0204e89daf13049c4527fb6bcfce563d0 100644 (file)
@@ -304,15 +304,15 @@ public class AugmentStatementImpl extends AbstractDeclaredStatement<SchemaNodeId
                  */
                 if (!Utils.belongsToTheSameModule(targetStmtQName, sourceStmtQName)) {
                     return true;
-                } else {
-                    /*
-                     * If target or one of its parent is a presence container from
-                     * the same module, return false and skip mandatory nodes
-                     * validation
-                     */
-                    if (StmtContextUtils.isPresenceContainer(targetCtx)) {
-                        return false;
-                    }
+                }
+
+                /*
+                 * If target or one of its parent is a presence container from
+                 * the same module, return false and skip mandatory nodes
+                 * validation
+                 */
+                if (StmtContextUtils.isPresenceContainer(targetCtx)) {
+                    return false;
                 }
             } while ((targetCtx = targetCtx.getParentContext()) != root);