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:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user