fix(recycle): nil pointer if failed to found files in trash (#2750)

pull/2507/merge
Aaron Liu 2025-08-07 11:03:02 +08:00
parent 48e9719336
commit b0375f5a24
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ func CronCollectTrashBin(ctx context.Context) {
res, err := fm.fs.AllFilesInTrashBin(ctx, fs.WithPageSize(pageSize))
if err != nil {
l.Error("Failed to get files in trash bin: %s", err)
return
}
expired := lo.Filter(res.Files, func(file fs.File, index int) bool {