Skip to content

Commit 234c90f

Browse files
committed
useragent: skip empty string check
1 parent c0aa19d commit 234c90f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

useragent/from.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// pattern (where version and comment are optional) return a zero value struct.
1919
func FromSlice[T any](sl []T) config.UserAgentProducts {
2020
return slices.ApplyToAll(sl, func(v T) config.UserAgentProduct {
21-
if s, ok := any(v).(string); ok && s != "" {
21+
if s, ok := any(v).(string); ok {
2222
return fromString(s)
2323
}
2424
return config.UserAgentProduct{}

0 commit comments

Comments
 (0)