Merge PR #5227: Use existing struct

This commit is contained in:
Henrik Aasted Sørensen 2019-10-21 16:36:31 +02:00 committed by Alexander Bezobchuk
parent 9ef647ba61
commit 7581871b9b

View File

@ -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