Skip to content

Commit 20c26dc

Browse files
committed
refactor
1 parent fcb2407 commit 20c26dc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ hs_err_pid*
1313
/.*
1414
/build/
1515
/bin/
16-
16+
*.iml

src/main/java/org/scm4j/vcs/GitVCS.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,7 @@ private RevObject getInitialCommit(Git git) throws Exception {
618618
RevCommit root = rw.parseCommit(headId);
619619
rw.sort(RevSort.REVERSE);
620620
rw.markStart(root);
621-
RevCommit res = rw.next();
622-
return res;
621+
return rw.next();
623622
}
624623
}
625624

src/test/java/org/scm4j/vcs/GitVCSTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
public class GitVCSTest extends VCSAbstractTest {
1919

2020
private Repository localGitRepo;
21-
private RuntimeException testGitResetException = new RuntimeException("test exeption on git.reset()");
21+
private final RuntimeException testGitResetException = new RuntimeException("test exeption on git.reset()");
2222

2323
@Override
2424
public void setUp() throws Exception {
@@ -48,8 +48,7 @@ protected String getTestRepoUrl() {
4848

4949
@Override
5050
protected IVCS getVCS(IVCSRepositoryWorkspace mockedVCSRepo) {
51-
IVCS vcs = Mockito.spy(new GitVCS(mockedVCSRepo));
52-
return vcs;
51+
return Mockito.spy(new GitVCS(mockedVCSRepo));
5352
}
5453

5554
@Override

0 commit comments

Comments
 (0)