Remove unnecessary operation

This commit is contained in:
Josh Soref committed 2019-02-21 00:27:44 -05:00
1 parent 18847a9fc6
commit 33d4bcea93
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}