mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
Remove unnecessary operation
This commit is contained in:
1 parent
18847a9fc6
commit
33d4bcea93
1 file changed
+1
-1
@@ -276,7 +276,7 @@ public class WebAppMain implements ServletContextListener {
|
||||
*/
|
||||
private void recordBootAttempt(File home) {
|
||||
try (OutputStream o=Files.newOutputStream(BootFailure.getBootFailureFile(home).toPath(), StandardOpenOption.CREATE, StandardOpenOption.APPEND)) {
|
||||
o.write((new Date().toString() + System.getProperty("line.separator", "\n")).toString().getBytes());
|
||||
o.write((new Date().toString() + System.getProperty("line.separator", "\n")).getBytes());
|
||||
} catch (IOException | InvalidPathException e) {
|
||||
LOGGER.log(WARNING, "Failed to record boot attempts",e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user