From 33d4bcea937b65d489f9283cd69d92139455a8df Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 21 Feb 2019 00:27:44 -0500 Subject: [PATCH] Remove unnecessary operation --- core/src/main/java/hudson/WebAppMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/WebAppMain.java b/core/src/main/java/hudson/WebAppMain.java index 927b533424..bf2bf3f455 100644 --- a/core/src/main/java/hudson/WebAppMain.java +++ b/core/src/main/java/hudson/WebAppMain.java @@ -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); }