We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0aa19d commit 234c90fCopy full SHA for 234c90f
useragent/from.go
@@ -18,7 +18,7 @@ import (
18
// pattern (where version and comment are optional) return a zero value struct.
19
func FromSlice[T any](sl []T) config.UserAgentProducts {
20
return slices.ApplyToAll(sl, func(v T) config.UserAgentProduct {
21
- if s, ok := any(v).(string); ok && s != "" {
+ if s, ok := any(v).(string); ok {
22
return fromString(s)
23
}
24
return config.UserAgentProduct{}
0 commit comments