Combined two subsequent if statements, reported by pmd.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b7f2a69cf
commit
2f013e3746
|
@ -845,15 +845,13 @@ public class MillerUpdatingRegression implements UpdatingMultipleLinearRegressio
|
|||
while (i < nvars) {
|
||||
l = vorder[i];
|
||||
for (int j = 0; j < list.length; j++) {
|
||||
if (l == list[j]) {
|
||||
if (i > next) {
|
||||
this.vmove(i, next);
|
||||
++next;
|
||||
if (next >= list.length + pos1) {
|
||||
return 0;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
if (l == list[j] && i > next) {
|
||||
this.vmove(i, next);
|
||||
++next;
|
||||
if (next >= list.length + pos1) {
|
||||
return 0;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue