Fix linter errors to reflect update to Go 1.20

This commit is contained in:
Gabe Kangas
2023-03-24 14:42:49 -07:00
parent 24c51c831e
commit a3e890ff7a
3 changed files with 3 additions and 6 deletions

View File

@@ -3,7 +3,6 @@ package admin
import (
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
@@ -147,7 +146,7 @@ func getContainerID() string {
pid := os.Getppid()
cgroupPath := fmt.Sprintf("/proc/%s/cgroup", strconv.Itoa(pid))
containerID := ""
content, err := ioutil.ReadFile(cgroupPath) //nolint:gosec
content, err := os.ReadFile(cgroupPath) //nolint:gosec
if err != nil {
return containerID
}