mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Fix code style
This commit is contained in:
@@ -53,11 +53,13 @@ public final class ModMetadataFiles {
|
|||||||
var text = new String(bytes, StandardCharsets.UTF_8);
|
var text = new String(bytes, StandardCharsets.UTF_8);
|
||||||
Jankson jankson = Jankson.builder().build();
|
Jankson jankson = Jankson.builder().build();
|
||||||
String json;
|
String json;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
json = jankson.fromJson(text, JsonElement.class).toJson(JsonGrammar.STRICT);
|
json = jankson.fromJson(text, JsonElement.class).toJson(JsonGrammar.STRICT);
|
||||||
} catch (SyntaxError e) {
|
} catch (SyntaxError e) {
|
||||||
throw ExceptionUtil.createDescriptiveWrapper(RuntimeException::new, "Could not read JSON5 file", e);
|
throw ExceptionUtil.createDescriptiveWrapper(RuntimeException::new, "Could not read JSON5 file", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return next.apply(json.getBytes(StandardCharsets.UTF_8));
|
return next.apply(json.getBytes(StandardCharsets.UTF_8));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user