Other: Update golangci-lint to v1.50.0

This commit is contained in:
Leander Beernaert
2022-10-17 11:02:56 +02:00
parent e0603f741f
commit 9d800324af
70 changed files with 247 additions and 277 deletions

View File

@ -18,7 +18,7 @@
package context
import (
"io/ioutil"
"os"
"path/filepath"
)
@ -29,7 +29,7 @@ type fakeCache struct {
// newFakeCache creates a temporary folder for files.
// It's expected the test calls `ClearData` before finish to remove it from the file system.
func newFakeCache() *fakeCache {
dir, err := ioutil.TempDir("", "test-cache")
dir, err := os.MkdirTemp("", "test-cache")
if err != nil {
panic(err)
}