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

Fix issues found by goimports

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer
2020-05-06 23:00:03 -07:00
parent d45c02251d
commit b7165991c9
16 changed files with 42 additions and 37 deletions

View File

@@ -44,16 +44,16 @@ func (widget *Widget) Refresh() {
widget.links = nil
widget.SetItemCount(0)
} else {
if len(links) <= widget.settings.numberOfPosts {
widget.links = links
widget.SetItemCount(len(widget.links))
widget.err = nil
} else {
widget.links = links[:widget.settings.numberOfPosts]
widget.SetItemCount(len(widget.links))
widget.err = nil
}
}
if len(links) <= widget.settings.numberOfPosts {
widget.links = links
widget.SetItemCount(len(widget.links))
widget.err = nil
} else {
widget.links = links[:widget.settings.numberOfPosts]
widget.SetItemCount(len(widget.links))
widget.err = nil
}
}
widget.Render()
}