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

This commit is contained in:
TfT_02 2013-11-02 21:50:49 +01:00
parent 0196fd8447
commit a9c5e2a04f

View File

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