Remove dependency of deprecated ioutil package

This commit is contained in:
Deluan
2021-07-20 20:00:58 -04:00
parent 774ad65155
commit 8afa2cd833
23 changed files with 77 additions and 86 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ package core
import (
"context"
"io"
"io/ioutil"
"time"
"github.com/navidrome/navidrome/conf"
@@ -80,7 +79,7 @@ func (w *warmer) execute(workload interface{}) {
return
}
defer r.Close()
_, _ = io.Copy(ioutil.Discard, r)
_, _ = io.Copy(io.Discard, r)
}
type artworkItem struct {