Skip to content

Commit

Permalink
address lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tstromberg committed Oct 7, 2024
1 parent 96e9ecf commit 615da6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/action/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type ProcessInfo struct {
CmdLine []string
}

// ActiveProcesses is an exported function that a list of active processes
// ActiveProcesses is an exported function that a list of active processes.
func ActiveProcesses(ctx context.Context) ([]*ProcessInfo, error) {
// Retrieve all of the active PIDs
procs, err := process.ProcessesWithContext(ctx)
Expand Down Expand Up @@ -55,7 +55,7 @@ func ActiveProcesses(ctx context.Context) ([]*ProcessInfo, error) {
return ps, nil
}

// canStat checks if stat() works on a given path
// canStat checks if stat() works on a given path.
func canStat(path string) bool {
_, err := os.Stat(path)
return err == nil
Expand Down Expand Up @@ -120,5 +120,4 @@ func processInfo(ctx context.Context, p *process.Process) (*ProcessInfo, error)
}

return nil, fmt.Errorf("%s: unable to stat %q", pi.Name, pi.ScanPath)

}

0 comments on commit 615da6a

Please sign in to comment.