mirror of
https://codeberg.org/scip/epuppy.git
synced 2026-02-04 17:50:58 +01:00
fix linter errors
This commit is contained in:
@@ -199,7 +199,7 @@ func (conf *Config) WriteConfigFile() (string, error) {
|
|||||||
cfgfile := filepath.Join(conf.GetConfigDir(), "config.toml")
|
cfgfile := filepath.Join(conf.GetConfigDir(), "config.toml")
|
||||||
|
|
||||||
if FileExists(cfgfile) {
|
if FileExists(cfgfile) {
|
||||||
return "", fmt.Errorf("config file %s already exists.", cfgfile)
|
return "", fmt.Errorf("config file %s already exists", cfgfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
var kloader = koanf.New(".")
|
var kloader = koanf.New(".")
|
||||||
|
|||||||
@@ -58,7 +58,11 @@ func Execute(output io.Writer) int {
|
|||||||
return Die(err)
|
return Die(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintln(output, msg)
|
_, err = fmt.Fprintln(output, msg)
|
||||||
|
if err != nil {
|
||||||
|
return Die(fmt.Errorf("failed to print to output: %s", err))
|
||||||
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user