aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-06-22 12:25:58 +0200
committerRobin Jarry <robin@jarry.cc>2022-06-24 21:08:21 +0200
commit3f45dee237a076b009e1284bc9784f5f7a07df97 (patch)
treeb3450a1c6054b84d091bf73f6548b66952b4d4e7 /lib
parentdbc5bb41a51be1433813761e5cc8221e06b89229 (diff)
downloadaerc-3f45dee237a076b009e1284bc9784f5f7a07df97.tar.gz
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 <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib')
-rw-r--r--lib/calendar/calendar.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/calendar/calendar.go b/lib/calendar/calendar.go
index d53aec5b..dbce6bce 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
}