Browse Source

Don't send a message to the console if no backups were deleted

TfT_02 11 years ago
parent
commit
a9c5e2a04f

+ 4 - 0
src/main/java/com/gmail/nossr50/runnables/backups/CleanBackupsTask.java

@@ -67,6 +67,10 @@ public class CleanBackupsTask extends BukkitRunnable {
             toDelete.add(file);
         }
 
+        if (toDelete.isEmpty()) {
+            return;
+        }
+
         mcMMO.p.getLogger().info("Cleaning backup files... (" + amountDeleted + "/" + amountTotal + ")");
 
         for (File file : toDelete) {