Skip to content

Commit 3978c41

Browse files
fix end-of-file issue and run scalafmt
1 parent 5c7c677 commit 3978c41

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/src/main/scala/com/codacy/analysis/core/git/Repository.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class Repository(repository: JGitRepository) {
1818
val revCommit = gitLog.iterator().next()
1919

2020
new Commit(repository, revCommit)
21+
} catch (GitAPIException | IOException e) {
22+
System.err.println("An error occurred while getting the latest commit: " + e.getMessage());
23+
e.printStackTrace();
2124
}
22-
catch (GitAPIException | IOException e) {
23-
System.err.println("An error occurred while getting the latest commit: " + e.getMessage());
24-
e.printStackTrace();
2525
}
2626

2727
def uncommitedFiles: Try[Set[String]] = {
@@ -32,5 +32,4 @@ class Repository(repository: JGitRepository) {
3232
javaSet.asScala.toSet
3333
}
3434
}
35-
3635
}

0 commit comments

Comments
 (0)