mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-08 02:17:25 +02:00
refactor: run Go modernize
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
8319905d2c
commit
c280dd67a4
2 changed files with 3 additions and 4 deletions
|
|
@ -142,7 +142,7 @@ var _ = Describe("purgeCacheBySize", func() {
|
|||
now := time.Now()
|
||||
|
||||
// Create 5 files, 1MiB each (total 5MiB)
|
||||
for i := 0; i < 5; i++ {
|
||||
for i := range 5 {
|
||||
path := filepath.Join(cacheDir, filepath.Join("dir", "file"+string(rune('0'+i))+".bin"))
|
||||
createFileWithSize(path, 1*1024*1024, now.Add(-time.Duration(5-i)*time.Hour))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue