ReceiveCommits: Fix Eclipse warnings
- Declaration of unthrown exception - Unnecessarily nested else-clause Change-Id: I199090caeda76574780029234dae018dde672ccb
This commit is contained in:
@@ -1838,11 +1838,10 @@ public class ReceiveCommits {
|
||||
"commit(s) already exists (as current patchset)");
|
||||
newChanges = Collections.emptyList();
|
||||
return;
|
||||
} else {
|
||||
}
|
||||
itr.remove();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
newChangeIds.add(p.changeKey);
|
||||
}
|
||||
newChanges.add(new CreateRequest(p.commit, magicBranch.dest.get()));
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user