From 3f45dee237a076b009e1284bc9784f5f7a07df97 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Wed, 22 Jun 2022 12:25:58 +0200 Subject: [PATCH] calendar: fix go vet error Fix the following go vet error: lib/calendar/calendar.go:191:11: github.com/arran4/golang-ical.Attendee composite literal uses unkeyed fields Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- lib/calendar/calendar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/calendar/calendar.go b/lib/calendar/calendar.go index d53aec5..dbce6bc 100644 --- a/lib/calendar/calendar.go +++ b/lib/calendar/calendar.go @@ -188,7 +188,7 @@ func (e *event) updateAttendees(status ics.ParticipationStatus, from string) { var clean []ics.IANAProperty for _, prop := range e.Properties { if prop.IANAToken == string(ics.ComponentPropertyAttendee) { - att := ics.Attendee{prop} + att := ics.Attendee{IANAProperty: prop} if att.Email() != from { continue }