Remove useless for(;;) loop
Change-Id: Ic9a7824cc178e92f44126acc8e77b0304b20ef4f Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
This commit is contained in:
parent
7d3040368f
commit
e00f59b7fe
|
@ -93,11 +93,10 @@ int outputType() {
|
||||||
@Override
|
@Override
|
||||||
RevCommit next() throws MissingObjectException,
|
RevCommit next() throws MissingObjectException,
|
||||||
IncorrectObjectTypeException, IOException {
|
IncorrectObjectTypeException, IOException {
|
||||||
for (;;) {
|
|
||||||
final RevCommit c = source.next();
|
final RevCommit c = source.next();
|
||||||
if (c == null)
|
if (c == null) {
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
boolean rewrote = false;
|
boolean rewrote = false;
|
||||||
final RevCommit[] pList = c.parents;
|
final RevCommit[] pList = c.parents;
|
||||||
final int nParents = pList.length;
|
final int nParents = pList.length;
|
||||||
|
@ -109,11 +108,10 @@ RevCommit next() throws MissingObjectException,
|
||||||
rewrote = true;
|
rewrote = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rewrote)
|
if (rewrote) {
|
||||||
c.parents = cleanup(pList);
|
c.parents = cleanup(pList);
|
||||||
|
|
||||||
return c;
|
|
||||||
}
|
}
|
||||||
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
private RevCommit rewrite(RevCommit p) {
|
private RevCommit rewrite(RevCommit p) {
|
||||||
|
|
Loading…
Reference in New Issue