Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8a95db3d42
commit
dd74cf1da5
|
@ -60,9 +60,8 @@ public class InheritanceUtils {
|
|||
|
||||
if (d == 1) {
|
||||
return d;
|
||||
} else {
|
||||
d += distance(cParent, parent);
|
||||
return d > 0 ? d + 1 : -1;
|
||||
}
|
||||
d += distance(cParent, parent);
|
||||
return d > 0 ? d + 1 : -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue