Skip to content

Commit

Permalink
remove ioutil dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
spikat committed Dec 19, 2024
1 parent beb9644 commit b73a0fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/security/utils/proc_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
Expand Down Expand Up @@ -457,7 +456,7 @@ func GetPidTasks(pid uint32) ([]string, error) {
taskPath := procPidPath(pid, "task")

// Read the contents of the task directory
tasks, err := ioutil.ReadDir(taskPath)
tasks, err := os.ReadDir(taskPath)
if err != nil {
return nil, fmt.Errorf("failed to read task directory: %v", err)
}
Expand Down

0 comments on commit b73a0fe

Please sign in to comment.