mirror of
https://github.com/restic/restic.git
synced 2026-09-01 02:07:14 +00:00
Apply go fix ./... (#22037)
This commit is contained in:
@@ -62,7 +62,7 @@ var genericAttributesForOS = map[GenericAttributeType]osType{}
|
||||
func storeGenericAttributeType(attributeTypes ...GenericAttributeType) {
|
||||
for _, attributeType := range attributeTypes {
|
||||
// Get the OS attribute type from the GenericAttributeType
|
||||
osAttributeName := strings.Split(string(attributeType), ".")[0]
|
||||
osAttributeName, _, _ := strings.Cut(string(attributeType), ".")
|
||||
genericAttributesForOS[attributeType] = osType(osAttributeName)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user