HttpTestCase#fsck: Open TestRepository in try-with-resource
Change-Id: Ibda8c9970322871abf0fcf1244977bed04eaedd2 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
6df350ee0e
commit
b465657238
|
@ -186,9 +186,10 @@ protected List<AccessEvent> getRequests(String path) {
|
||||||
*/
|
*/
|
||||||
protected static void fsck(Repository db, RevObject... tips)
|
protected static void fsck(Repository db, RevObject... tips)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
TestRepository<? extends Repository> tr =
|
try (TestRepository<? extends Repository> tr =
|
||||||
new TestRepository<>(db);
|
new TestRepository<>(db)) {
|
||||||
tr.fsck(tips);
|
tr.fsck(tips);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue