diff options
author | Simon Ser <contact@emersion.fr> | 2020-05-20 19:08:06 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-20 19:08:06 +0200 |
commit | 8813faf71ed98cd60dc099e08d57002acb516878 (patch) | |
tree | 730a754adb3941dd6ff70b8130f2989a8711e66c /plugins | |
parent | 9465f8db6d12a2bb8707f62ccb7d668059ec1cf1 (diff) | |
download | alps-8813faf71ed98cd60dc099e08d57002acb516878.tar.gz alps-8813faf71ed98cd60dc099e08d57002acb516878.zip |
go fmt
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/caldav/routes.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/caldav/routes.go b/plugins/caldav/routes.go index d7c31f7..f0c9573 100644 --- a/plugins/caldav/routes.go +++ b/plugins/caldav/routes.go @@ -135,14 +135,14 @@ func registerRoutes(p *alps.GoPlugin, u *url.URL) { NextTime: start.AddDate(0, 1, 0), EventsForDate: func(when time.Time) []CalendarObject { - if events, ok := eventMap[when.Truncate(time.Hour * 24)]; ok { + if events, ok := eventMap[when.Truncate(time.Hour*24)]; ok { return events } return nil }, DaySuffix: func(n int) string { - if n % 100 >= 11 && n % 100 <= 13 { + if n%100 >= 11 && n%100 <= 13 { return "th" } return map[int]string{ @@ -156,10 +156,10 @@ func registerRoutes(p *alps.GoPlugin, u *url.URL) { 7: "th", 8: "th", 9: "th", - }[n % 10] + }[n%10] }, - Sub: func (a, b int) int { + Sub: func(a, b int) int { // Why isn't this built-in, come on Go return a - b }, |