mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Remove complexity from a lot of string display statements
This commit is contained in:
@@ -34,9 +34,9 @@ func (widget *Widget) Refresh() {
|
||||
widget.execute()
|
||||
|
||||
title := wtf.Config.UString("wtf.mods.cmdrunner.title", widget.String())
|
||||
widget.View.SetTitle(fmt.Sprintf("%s", title))
|
||||
widget.View.SetTitle(title)
|
||||
|
||||
widget.View.SetText(fmt.Sprintf("%s", widget.result))
|
||||
widget.View.SetText(widget.result)
|
||||
}
|
||||
|
||||
func (widget *Widget) String() string {
|
||||
|
||||
Reference in New Issue
Block a user