mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Some code improvements
* Some assignments simplified by using assignment operators * Rewrite switch statement with only one case as if. * Rewrite if-else chain as a switch statement. * go fmt `modules/todoist/project.go` file.
This commit is contained in:
@@ -61,8 +61,8 @@ func (widget *Widget) contentFrom(onCallResponses []*OnCallResponse) string {
|
||||
msg = fmt.Sprintf(" %s\n\n", strings.Join(wtf.NamesFromEmails(data.OnCallData.Recipients), ", "))
|
||||
}
|
||||
|
||||
str = str + widget.cleanScheduleName(data.OnCallData.Parent.Name)
|
||||
str = str + msg
|
||||
str += widget.cleanScheduleName(data.OnCallData.Parent.Name)
|
||||
str += msg
|
||||
}
|
||||
|
||||
return str
|
||||
|
||||
Reference in New Issue
Block a user