aboutsummaryrefslogtreecommitdiff
path: root/plugins/caldav
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-05-20 17:45:32 +0200
committerSimon Ser <contact@emersion.fr>2020-05-20 17:45:32 +0200
commitcfea0ec787af85827fcea6aa38f45e11080c2898 (patch)
tree9bc10a5d6ad49552fb359d9a3b48f75f7bf85849 /plugins/caldav
parent83dd3f71d633f7642f5e95196f1823384c9ef141 (diff)
downloadalps-cfea0ec787af85827fcea6aa38f45e11080c2898.tar.gz
alps-cfea0ec787af85827fcea6aa38f45e11080c2898.zip
plugins/caldav: fix duplicate event after edit
Diffstat (limited to 'plugins/caldav')
-rw-r--r--plugins/caldav/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/caldav/routes.go b/plugins/caldav/routes.go
index fe8a2b2..cb8aa2a 100644
--- a/plugins/caldav/routes.go
+++ b/plugins/caldav/routes.go
@@ -165,7 +165,7 @@ func registerRoutes(p *alps.GoPlugin, u *url.URL) {
var co *caldav.CalendarObject
var event *ical.Event
if calendarObjectPath != "" {
- co, err := c.GetCalendarObject(calendarObjectPath)
+ co, err = c.GetCalendarObject(calendarObjectPath)
if err != nil {
return fmt.Errorf("failed to get CalDAV event: %v", err)
}