Skip to content

Commit 8a35bbd

Browse files
salimbouchhohwille
andauthored
Update cli/src/main/java/com/devonfw/tools/ide/property/RepositoryProperty.java
Co-authored-by: Jörg Hohwiller <[email protected]>
1 parent e62ea03 commit 8a35bbd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cli/src/main/java/com/devonfw/tools/ide/property/RepositoryProperty.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ public Path getValueAsPath(IdeContext context) {
5050
Path repositoriesPath = context.getSettingsPath().resolve(IdeContext.FOLDER_REPOSITORIES);
5151
Path legacyRepositoriesPath = context.getSettingsPath().resolve(IdeContext.FOLDER_LEGACY_REPOSITORIES);
5252

53-
Path repositoryFile;
54-
if (super.getValue() != null) {
55-
repositoryFile = Path.of(super.getValue());
56-
} else {
53+
String value = getValue();
54+
if (value == null) {
5755
return null;
5856
}
57+
Path repositoryFile = Path.of(value);
5958

6059
if (!Files.exists(repositoryFile)) {
6160
repositoryFile = repositoriesPath.resolve(repositoryFile.getFileName().toString() + ".properties");

0 commit comments

Comments
 (0)