Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-tim-sumo committed Nov 13, 2024
1 parent 13ed1b6 commit 0bbe03b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions exporter/sumologicexporter/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions extension/sumologicextension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ func filteredProcessList() ([]string, error) {
}

for _, v := range processes {
// Get the process executable name
// Get process executable name
e, err := v.Name()
if err != nil {
return nil, fmt.Errorf("Error getting executable name: %w", err)
Expand All @@ -748,7 +748,7 @@ func filteredProcessList() ([]string, error) {
pl = append(pl, "docker-ce")
}

// handling for Java background processes
// handling Java background processes
if e == "java" {
cmdline, err := v.Cmdline()
if err != nil {
Expand All @@ -764,7 +764,6 @@ func filteredProcessList() ([]string, error) {
pl = append(pl, "activemq")
}
}

}

return pl, nil
Expand Down

0 comments on commit 0bbe03b

Please sign in to comment.