perf(123):file thumbnail

This commit is contained in:
foxxorcat
2022-05-12 22:10:24 +08:00
parent 3b59bb5c09
commit aeb2297f1f
3 changed files with 14 additions and 11 deletions

View File

@ -126,7 +126,7 @@ func (driver Pan123) Files(path string, account *model.Account) ([]model.File, e
_ = base.SetCache(path, rawFiles, account)
}
}
files := make([]model.File, 0)
files := make([]model.File, 0, len(rawFiles))
for _, file := range rawFiles {
files = append(files, *driver.FormatFile(&file))
}