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:
@@ -75,7 +75,7 @@ func (widget *Widget) display() {
|
||||
_, _, width, _ := widget.View.GetRect()
|
||||
str := widget.settings.common.SigilStr(len(widget.Sources), widget.Idx, width-2) + "\n"
|
||||
for _, tweet := range tweets {
|
||||
str = str + widget.format(tweet)
|
||||
str += widget.format(tweet)
|
||||
}
|
||||
|
||||
widget.Redraw(title, str, true)
|
||||
|
||||
Reference in New Issue
Block a user