Skip to content

Commit 3a664a5

Browse files
author
Vladimir Kotal
committed
assign and check separately
1 parent 9317173 commit 3a664a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,8 @@ private org.eclipse.jgit.lib.Repository getJGitRepository(String directory) thro
685685
}
686686

687687
// Assume this is a sub-module so dotGitFile is a file.
688-
String gitDirValue;
689-
if ((gitDirValue = getGitDirValue(dotGitFile)) == null) {
688+
String gitDirValue = getGitDirValue(dotGitFile);
689+
if (gitDirValue == null) {
690690
throw new IOException("cannot get gitDir value from " + dotGitFile);
691691
}
692692

0 commit comments

Comments
 (0)