1
0
Fork 0
mirror of https://github.com/Luzifer/update-gotools.git synced 2024-12-22 12:51:20 +00:00

Fix variable shadowing

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-02-20 21:36:03 +01:00
parent 5ac553bcc2
commit 3eb44daa51
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -40,8 +40,7 @@ var (
)
func init() {
var err error
if err = rconfig.Parse(&cfg); err != nil {
if err := rconfig.Parse(&cfg); err != nil {
log.WithError(err).Fatal("Unable to parse commandline options")
}
@ -56,6 +55,7 @@ func init() {
os.Exit(0)
}
var err error
if cfg.Config, err = homedir.Expand(cfg.Config); err != nil {
log.WithError(err).Fatal("Unable to expand config path")
}