1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

go mod tidy

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer
2020-07-23 06:26:51 -07:00
parent 24ba1ee07c
commit 391ce432a7
3 changed files with 7 additions and 12 deletions

View File

@@ -154,7 +154,11 @@ func (widget *Widget) contentFrom(onCalls []pagerduty.OnCall, incidents []pagerd
// onCallEndSummary may or may not return the date that the specified onCall schedule ends
func (widget *Widget) onCallEndSummary(onCall pagerduty.OnCall) string {
if !widget.settings.showOnCallEnd || onCall.End == "" {
if !widget.settings.showOnCallEnd {
return ""
}
if onCall.End == "" {
return ""
}
@@ -166,7 +170,7 @@ func (widget *Widget) onCallEndSummary(onCall pagerduty.OnCall) string {
return end.Format(onCallTimeDisplayLayout)
}
// userSummary returns the name of the person assigned to the specified onCall scehdule
// userSummary returns the name of the person assigned to the specified onCall schedule
func (widget *Widget) userSummary(onCall pagerduty.OnCall) string {
summary := onCall.User.Summary