mirror of
https://github.com/restic/restic.git
synced 2026-10-19 16:15:41 +00:00
apply go fix ./...
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user