Skip to content

Commit 477d3ea

Browse files
committed
🐺💻
1 parent 6fa2564 commit 477d3ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

config/common/src/main/java/band/kessoku/lib/config/serializers/Json5Serializer.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ private Json5Builder.ObjectBean toBean(Map<String, AbstractConfig.ValueWithComme
4545
Json5Builder builder = new Json5Builder();
4646
Json5Builder.ObjectBean objectBean = builder.getObjectBean();
4747
value.forEach((s, valueWithComment) -> {
48-
for (String comment : valueWithComment.comments()) objectBean.addNote(comment);
49-
if (valueWithComment.object() instanceof Map<?, ?>)
48+
for (String comment : valueWithComment.comments()) {
49+
objectBean.addNote(comment);
50+
}
51+
52+
if (valueWithComment.object() instanceof Map<?, ?>) {
5053
objectBean.addBean(s, this.toBean((Map<String, AbstractConfig.ValueWithComment>) valueWithComment.object()));
54+
}
5155
});
5256
return objectBean;
5357
}

0 commit comments

Comments
 (0)