refactoring

This commit is contained in:
Nazar Kanaev
2020-07-25 13:17:26 +01:00
parent b223233318
commit 9b04353c4a
6 changed files with 62 additions and 23 deletions

View File

@@ -324,5 +324,7 @@ func (s *Storage) DeleteOldItems() {
s.log.Print(err)
return
}
s.log.Printf("Deleted %d items\n", num)
if num > 0 {
s.log.Printf("Deleted %d old items\n", num)
}
}