mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Clean up the MakeWidgets process by miniming the number of params passed around
This commit is contained in:
@@ -18,8 +18,7 @@ func Display(moduleName string, config *config.Config) {
|
||||
}
|
||||
|
||||
func helpFor(moduleName string, config *config.Config) string {
|
||||
modConfig, _ := config.Get("wtf.mods." + moduleName)
|
||||
widget := maker.MakeWidget(nil, nil, moduleName, moduleName, modConfig, config)
|
||||
widget := maker.MakeWidget(nil, nil, moduleName, config)
|
||||
|
||||
result := ""
|
||||
result += utils.StripColorTags(widget.HelpText())
|
||||
|
||||
Reference in New Issue
Block a user