1
0
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:
Chris Cummer
2019-07-26 21:45:21 -07:00
parent 6de0449b8c
commit 324666a3ec
5 changed files with 72 additions and 65 deletions

View File

@@ -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())