ReceiveCommits: Fix Eclipse warnings

- Declaration of unthrown exception
- Unnecessarily nested else-clause

Change-Id: I199090caeda76574780029234dae018dde672ccb
This commit is contained in:
David Pursehouse
2016-10-18 08:49:54 +09:00
parent 4b657d5c39
commit f2ed2a668c

View File

@@ -1838,10 +1838,9 @@ public class ReceiveCommits {
"commit(s) already exists (as current patchset)");
newChanges = Collections.emptyList();
return;
} else {
itr.remove();
continue;
}
itr.remove();
continue;
}
newChangeIds.add(p.changeKey);
}
@@ -1897,7 +1896,7 @@ public class ReceiveCommits {
}
private boolean foundInExistingRef(Collection<Ref> existingRefs)
throws OrmException, IOException {
throws OrmException {
for (Ref ref : existingRefs) {
ChangeNotes notes = notesFactory.create(db, project.getNameKey(),
Change.Id.fromRef(ref.getName()));