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>
This commit is contained in:
Moritz Poldrack 2022-06-22 12:25:58 +02:00 committed by Robin Jarry
parent dbc5bb41a5
commit 3f45dee237
1 changed files with 1 additions and 1 deletions

View File

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