Merge PR #5227: Use existing struct
This commit is contained in:
parent
9ef647ba61
commit
7581871b9b
@ -65,7 +65,7 @@ func NewEvent(ty string, attrs ...Attribute) Event {
|
||||
e := Event{Type: ty}
|
||||
|
||||
for _, attr := range attrs {
|
||||
e.Attributes = append(e.Attributes, NewAttribute(attr.Key, attr.Value).ToKVPair())
|
||||
e.Attributes = append(e.Attributes, attr.ToKVPair())
|
||||
}
|
||||
|
||||
return e
|
||||
|
||||
Loading…
Reference in New Issue
Block a user