From 7581871b9be88b77664467f3f50a384f5585249b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Aasted=20S=C3=B8rensen?= Date: Mon, 21 Oct 2019 16:36:31 +0200 Subject: [PATCH] Merge PR #5227: Use existing struct --- types/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/events.go b/types/events.go index 019a53f1f6..a3f9742757 100644 --- a/types/events.go +++ b/types/events.go @@ -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