mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Use errcheck to find unhandled errors (#795)
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -18,7 +18,11 @@ func Display(moduleName string, cfg *config.Config) {
|
||||
}
|
||||
|
||||
func helpFor(moduleName string, cfg *config.Config) string {
|
||||
cfg.Set("wtf.mods."+moduleName+".enabled", true)
|
||||
err := cfg.Set("wtf.mods."+moduleName+".enabled", true)
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
widget := app.MakeWidget(nil, nil, moduleName, cfg)
|
||||
|
||||
// Since we are forcing enabled config, if no module
|
||||
|
||||
Reference in New Issue
Block a user