mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
TeaVMTool: use a single try-with-resources
This commit is contained in:
parent
0068198abd
commit
3ff1651184
|
@ -460,10 +460,9 @@ public class TeaVMTool {
|
|||
generatedFiles.add(outputFile);
|
||||
|
||||
if (targetType == TeaVMTargetType.JAVASCRIPT) {
|
||||
try (OutputStream output = new FileOutputStream(outputFile, true)) {
|
||||
try (Writer writer = new OutputStreamWriter(output, StandardCharsets.UTF_8)) {
|
||||
additionalJavaScriptOutput(writer);
|
||||
}
|
||||
try (OutputStream output = new FileOutputStream(outputFile, true);
|
||||
Writer writer = new OutputStreamWriter(output, StandardCharsets.UTF_8)) {
|
||||
additionalJavaScriptOutput(writer);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user