apply go fix ./...

This commit is contained in:
Michael Eischer
2026-10-17 22:57:11 +02:00
parent a9d74f178e
commit 35f15c398a
+2 -2
View File
@@ -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)