From 35f15c398a8efcd209bb383c28285a83b167183f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 17 Oct 2026 22:38:44 +0200 Subject: [PATCH] apply go fix ./... --- internal/data/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/data/node.go b/internal/data/node.go index abcb75d11..bd6e5cb0f 100644 --- a/internal/data/node.go +++ b/internal/data/node.go @@ -468,8 +468,8 @@ func OSAttrsToGenericAttributes(attributeType reflect.Type, attributeValuePtr *r attrs = make(map[GenericAttributeType]json.RawMessage) // Iterate over the fields of the struct - for i := 0; i < attributeType.NumField(); i++ { - field := attributeType.Field(i) + for field := range attributeType.Fields() { + field := field // Get the field value using reflection fieldValue := attributeValue.FieldByName(field.Name)