Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana committed Dec 17, 2024
1 parent cc1ac56 commit 288153b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metric/system/process/process_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ import (
"unsafe"

xsyswindows "golang.org/x/sys/windows"
"golang.org/x/sys/windows/registry"

"github.com/elastic/elastic-agent-libs/logp"
"github.com/elastic/elastic-agent-libs/opt"
"github.com/elastic/elastic-agent-system-metrics/metric/system/resolve"
gowindows "github.com/elastic/go-windows"
Expand Down Expand Up @@ -467,7 +469,7 @@ func fillIdleProcess(state ProcState) (ProcState, error) {
return state, nil
}

func shouldIgnore(pid int) (bool, err) {
func shouldIgnore(pid int) bool {
// shouldIgnore checks if we should ignore the pid, to avoid elevated permissions

// LSASS.exe is a process which has no useful cmdline arguments, we should ignore acessing such process to avoid triggering Windows ASR rules
Expand Down

0 comments on commit 288153b

Please sign in to comment.