[freenet-cvs] r16847 - trunk/freenet/src/freenet/support

toad at freenetproject.org toad at freenetproject.org
Wed Jan 2 16:49:21 UTC 2008


Author: toad
Date: 2008-01-02 16:49:20 +0000 (Wed, 02 Jan 2008)
New Revision: 16847

Modified:
   trunk/freenet/src/freenet/support/FileLoggerHook.java
Log:
indent: tidy up slightly

Modified: trunk/freenet/src/freenet/support/FileLoggerHook.java
===================================================================
--- trunk/freenet/src/freenet/support/FileLoggerHook.java	2008-01-02 16:49:01 UTC (rev 16846)
+++ trunk/freenet/src/freenet/support/FileLoggerHook.java	2008-01-02 16:49:20 UTC (rev 16847)
@@ -298,12 +298,9 @@
 									System.err.println(
 											"Closing alt on change caught " + e);
 								}
-								if(previousFile != null && previousFile.exists()) {
+								if(previousFile != null && previousFile.exists())
 									FileUtil.renameTo(latestFile, previousFile);
-									latestFile.delete();
-								} else {
-									latestFile.delete();
-								}
+								latestFile.delete();
 								altLogStream = openNewLogFile(latestFile, false);
 							}
 							//System.err.println("Rotated log files: "+filename);




More information about the cvs mailing list