CommentsIT: Remove declaration of exception that is never thrown

Change-Id: I2d631bdc84d8334c2f53fc3a4909e306cbd775e4
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2017-05-11 17:10:35 +02:00
parent faf683f600
commit 151bb8d9e9

View File

@@ -64,7 +64,6 @@ import java.util.Optional;
import java.util.function.Supplier;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.eclipse.jgit.errors.ConfigInvalidException;
import org.eclipse.jgit.lib.ObjectReader;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.Repository;
@@ -861,8 +860,7 @@ public class CommentsIT extends AbstractDaemonTest {
return comment;
}
private List<RevCommit> getCommits(Change.Id changeId)
throws IOException, ConfigInvalidException {
private List<RevCommit> getCommits(Change.Id changeId) throws IOException {
try (Repository repo = repoManager.openRepository(project);
RevWalk revWalk = new RevWalk(repo)) {
Ref metaRef = repo.exactRef(RefNames.changeMetaRef(changeId));