Fix linter errors after go 1.20

This commit is contained in:
Andrei Pohilko
2023-06-02 13:06:10 +01:00
parent bea75cb011
commit 24df4a21d6
4 changed files with 14 additions and 17 deletions

View File

@@ -1,7 +1,6 @@
package dashboard
import (
"io/ioutil"
"net/http"
"net/http/httptest"
"net/url"
@@ -34,7 +33,7 @@ func TestMain(m *testing.M) { // fixture to set logging level via env variable
}
inMemStorage = storage.Init(driver.NewMemory())
d, err := ioutil.TempDir("", "helm")
d, err := os.MkdirTemp("", "helm")
if err != nil {
panic(err)
}