mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Another actions test (#889)
* Another actions test Signed-off-by: Chris Cummer <chriscummer@me.com> * Add BuildTest action Signed-off-by: Chris Cummer <chriscummer@me.com> * Remove lint check for the time being (so many issues) Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix issues found by errcheck Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix errors found by staticcheck Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix issues found by goimports Signed-off-by: Chris Cummer <chriscummer@me.com> * Comment out the action for the time being Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix shadowed variables Signed-off-by: Chris Cummer <chriscummer@me.com> * go mod tidy Signed-off-by: Chris Cummer <chriscummer@me.com> * Remove buildtest.yml Signed-off-by: Chris Cummer <chriscummer@me.com> * go mod tidy Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -60,8 +60,8 @@ func (widget *Widget) Fetch() ([]*CalEvent, error) {
|
||||
|
||||
calendarIDs, err := widget.getCalendarIdList(srv)
|
||||
for _, calendarID := range calendarIDs {
|
||||
calendarEvents, err := srv.Events.List(calendarID).TimeZone(timezone).ShowDeleted(false).TimeMin(startTime).MaxResults(eventLimit).SingleEvents(true).OrderBy("startTime").Do()
|
||||
if err != nil {
|
||||
calendarEvents, listErr := srv.Events.List(calendarID).TimeZone(timezone).ShowDeleted(false).TimeMin(startTime).MaxResults(eventLimit).SingleEvents(true).OrderBy("startTime").Do()
|
||||
if listErr != nil {
|
||||
break
|
||||
}
|
||||
events.Items = append(events.Items, calendarEvents.Items...)
|
||||
|
||||
@@ -43,7 +43,7 @@ func (widget *Widget) content() (string, string, bool) {
|
||||
timestamp = ""
|
||||
}
|
||||
|
||||
title := fmt.Sprintf("[%s]%s",
|
||||
title = fmt.Sprintf("[%s]%s",
|
||||
widget.titleColor(calEvent),
|
||||
widget.eventSummary(calEvent, calEvent.ConflictsWith(calEvents)),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user