Update module github.com/containers/psgo to v1.10.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-11-08 01:38:22 +00:00
committed by GitHub
parent 0aa3f74ccd
commit b458ba0d49
9 changed files with 21 additions and 16 deletions

View File

@@ -31,7 +31,7 @@ func GetPIDs() ([]string, error) {
if err != nil {
return nil, err
}
defer procDir.Close()
defer procDir.Close() //nolint:errcheck
// extract string slice of all directories in procDir
pidDirs, err := procDir.Readdirnames(0)
@@ -74,7 +74,7 @@ func getPIDsFromCgroupV1(pid string) ([]string, error) {
if err != nil {
return nil, err
}
defer f.Close()
defer f.Close() //nolint:errcheck
scanner := bufio.NewScanner(f)
cgroupPath := ""
@@ -109,7 +109,7 @@ func getPIDsFromCgroupV1(pid string) ([]string, error) {
return nil, err
}
}
defer f.Close()
defer f.Close() //nolint:errcheck
pids := []string{}
scanner = bufio.NewScanner(f)
@@ -128,7 +128,7 @@ func getPIDsFromCgroupV2(pid string) ([]string, error) {
if err != nil {
return nil, err
}
defer f.Close()
defer f.Close() //nolint:errcheck
scanner := bufio.NewScanner(f)
cgroupSlice := ""
@@ -152,7 +152,7 @@ func getPIDsFromCgroupV2(pid string) ([]string, error) {
if err != nil {
return nil, err
}
defer f.Close()
defer f.Close() //nolint:errcheck
pids := []string{}
scanner = bufio.NewScanner(f)