Skip to content

Commit 9a8e7c0

Browse files
committed
refactor
1 parent 5afedd3 commit 9a8e7c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/scm4j/commons/RegexConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
public class RegexConfig {
1414
public static final String URL_SEPARATOR = URLContentLoader.URL_SEPARATOR;
1515
public static final String OMAP_TAG = "!!omap";
16+
1617
private final LinkedHashMap<Object, Object> content = new LinkedHashMap<>();
1718

1819
@SuppressWarnings("unchecked")
@@ -32,7 +33,6 @@ public void loadFromYamlUrls(String... separatedUrls) throws IOException {
3233
LinkedHashMap<Object, Object> map;
3334
try {
3435
map = (LinkedHashMap<Object, Object>) yaml.load(content);
35-
//map = (LinkedHashMap<Object, Object>) yaml.loadAs(content, Map.class);
3636
} catch (Exception e) {
3737
throw new EConfig("failed to load config from yaml content at " + url + ": " + e.getMessage(), e);
3838
}
@@ -52,7 +52,6 @@ String prependOmapIfNeed(String content, Yaml yaml) throws IOException {
5252
if (node.getNodeId().equals(NodeId.sequence)) {
5353
return OMAP_TAG + "\r\n" + content;
5454
}
55-
return content;
5655
}
5756
return content;
5857
}

0 commit comments

Comments
 (0)