From 28c241d9d61d34dd442ead95628b6d8223765e3f Mon Sep 17 00:00:00 2001 From: Christiano Haesbaert Date: Tue, 9 Jan 2024 12:51:48 +0100 Subject: [PATCH] Rename 'v' to 'enabled' as suggested by Lee --- libbeat/common/capabilities/capabilities_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/common/capabilities/capabilities_linux.go b/libbeat/common/capabilities/capabilities_linux.go index e8961e999ee..9cd6737f8cc 100644 --- a/libbeat/common/capabilities/capabilities_linux.go +++ b/libbeat/common/capabilities/capabilities_linux.go @@ -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)