Skip to content

Commit dbb87f6

Browse files
author
gdy
committed
Component fixed
1 parent 5493a48 commit dbb87f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/scm4j/releaser/conf/Component.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ public class Component {
1212
private VCSRepository repo = null;
1313

1414
public VCSRepository getVcsRepository() {
15-
return repo == null ? VCSRepositories.getDefault().getByName(coords.getName()) : repo;
15+
if (repo == null) {
16+
repo = VCSRepositories.getDefault().getByName(coords.getName());
17+
}
18+
return repo;
1619
}
1720

1821
public Component(String coordsStr) {

0 commit comments

Comments
 (0)