🎨 Clean code

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-27 19:46:29 +08:00
parent 4df41234a2
commit 5a3fc75f28
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -131,7 +131,7 @@ func autoPurgeRepo(cron bool) {
}
todayDate := now.Format("2006-01-02")
// 筛选出每日需要保留的索引
// 过滤出每日需要保留的索引
var retentionIndexIDs []string
for date, indexes := range dateGroupedIndexes {
if len(indexes) <= Conf.Repo.RetentionIndexesDaily || todayDate == date {