From 241059f56bdd4bed5405a1d4f37d0fc7b8fa04df Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 23 Jun 2023 18:45:31 +0200 Subject: [PATCH] replace ioutil Signed-off-by: Jens Langhammer --- internal/gounicorn/gounicorn.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/gounicorn/gounicorn.go b/internal/gounicorn/gounicorn.go index 534e5d40e..cd498c6a8 100644 --- a/internal/gounicorn/gounicorn.go +++ b/internal/gounicorn/gounicorn.go @@ -2,7 +2,6 @@ package gounicorn import ( "fmt" - "io/ioutil" "net/http" "os" "os/exec" @@ -142,7 +141,7 @@ func (g *GoUnicorn) Restart() { return } - newPidB, err := ioutil.ReadFile(newPidFile) + newPidB, err := os.ReadFile(newPidFile) if err != nil { g.log.WithError(err).Warning("failed to find the new gunicorn process, aborting") return