Remove redundant close() statements

This commit is contained in:
Basil Crow committed 2020-12-11 21:34:22 -08:00
1 parent 635764cad5
commit 81bbfea719
2 files changed
+1 -3

No files matched your search

+1 -2
View File
@@ -712,9 +712,8 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
* @throws IOException
*/
private void disableWithoutCheck() throws IOException {
// creates an empty file
try (OutputStream os = Files.newOutputStream(disableFile.toPath())) {
os.close();
// creates an empty file
} catch (InvalidPathException e) {
throw new IOException(e);
}