From 3b6102fe3a6e5827a0b9565f7128ec8f079a52af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 1 Aug 2024 11:41:46 +0200 Subject: [PATCH] Shaman: replace deprecated function with its modern replacement Replace `ioutil.TempDir()` with `os.MkdirTemp()`. No functional changes. --- pkg/shaman/config/testing.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/shaman/config/testing.go b/pkg/shaman/config/testing.go index 61f26ee4..c0d22967 100644 --- a/pkg/shaman/config/testing.go +++ b/pkg/shaman/config/testing.go @@ -23,7 +23,6 @@ package config import ( - "io/ioutil" "os" "path/filepath" "time" @@ -31,7 +30,7 @@ import ( // CreateTestConfig creates a configuration + cleanup function. func CreateTestConfig() (conf Config, cleanup func()) { - tempDir, err := ioutil.TempDir("", "shaman-test-") + tempDir, err := os.MkdirTemp("", "shaman-test-") if err != nil { panic(err) }