mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-30 13:05:19 +00:00
Remove redundant close() statements
This commit is contained in:
1 parent
635764cad5
commit
81bbfea719
2 files changed
+1
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user