Apply go fix ./... (#22037)

This commit is contained in:
Michael Eischer
2026-08-29 21:02:05 +02:00
committed by GitHub
parent 28d802df8c
commit b593ba305b
6 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -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)
}
}