DiffAlgorithms: Open Repository in try-with-resource

Change-Id: I67cb486283213f8aa964333533c55966518baa36
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
David Pursehouse 2018-03-06 09:52:12 +09:00
parent 6d437a58f1
commit e466548235
1 changed files with 1 additions and 4 deletions

View File

@ -160,11 +160,8 @@ protected void run() throws Exception {
else
rb.findGitDir(dir);
Repository repo = rb.build();
try {
try (Repository repo = rb.build()) {
run(repo);
} finally {
repo.close();
}
}
}