aboutsummaryrefslogtreecommitdiff
path: root/plugins/caldav
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2021-08-04 03:20:45 +0200
committerSimon Ser <contact@emersion.fr>2021-08-04 11:01:05 +0200
commit5265ac59b1c8f40ced2294be72a41746b5a8a041 (patch)
tree8906fe71185b37c2f1f78df6ab04da64b3294bea /plugins/caldav
parent5d290410ee22092535533a1ba10ee7ad288342e2 (diff)
downloadalps-5265ac59b1c8f40ced2294be72a41746b5a8a041.tar.gz
alps-5265ac59b1c8f40ced2294be72a41746b5a8a041.zip
Simplify
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 f1baa1e..d551434 100644
--- a/plugins/caldav/routes.go
+++ b/plugins/caldav/routes.go
@@ -134,7 +134,7 @@ func registerRoutes(p *alps.GoPlugin, u *url.URL) {
var dates [7 * 6]time.Time
initialDate := start.UTC()
initialDate = initialDate.AddDate(0, 0, -int(initialDate.Weekday()))
- for i := 0; i < len(dates); i += 1 {
+ for i := 0; i < len(dates); i++ {
dates[i] = initialDate
initialDate = initialDate.AddDate(0, 0, 1)
}