diff pkg/misc/http.go @ 5683:31973f6f5cca sr-v2

Get rid of deprecation warnings from staticcheck.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 11 Feb 2024 21:37:00 +0100
parents 1222b777f51f
children
line wrap: on
line diff
--- a/pkg/misc/http.go	Sun Feb 11 21:26:22 2024 +0100
+++ b/pkg/misc/http.go	Sun Feb 11 21:37:00 2024 +0100
@@ -17,7 +17,6 @@
 	"bufio"
 	"fmt"
 	"io"
-	"io/ioutil"
 	"net/http"
 	"os"
 	"path/filepath"
@@ -54,7 +53,7 @@
 	}
 	defer f.Close()
 
-	dir, err := ioutil.TempDir(config.TmpDir(), field)
+	dir, err := os.MkdirTemp(config.TmpDir(), field)
 	if err != nil {
 		return "", err
 	}