Skip to content

Commit

Permalink
Rename 'v' to 'enabled' as suggested by Lee
Browse files Browse the repository at this point in the history
  • Loading branch information
haesbaert committed Jan 9, 2024
1 parent 020e2c5 commit 28c241d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbeat/common/capabilities/capabilities_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ func FromPid(flag Flag, pid int) ([]string, error) {
var sl []string
for i := 0; i < int(cap.MaxBits()); i++ {
c := cap.Value(i)
v, err := set.GetFlag(flag, c)
enabled, err := set.GetFlag(flag, c)
if err != nil {
return nil, err
}
if !v {
if !enabled {
continue
}
s, err := toECS(i)
Expand Down

0 comments on commit 28c241d

Please sign in to comment.