mirror of
https://github.com/restic/restic.git
synced 2026-10-30 03:55:42 +00:00
Apply go fix ./... (#22037)
This commit is contained in:
1 parent
28d802df8c
commit
b593ba305b
6 files changed
+19
-15
No files matched your search
@@ -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