mirror of
https://github.com/Luzifer/update-gotools.git
synced 2024-12-22 21:01:20 +00:00
Fix variable shadowing
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5ac553bcc2
commit
3eb44daa51
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -40,8 +40,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
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")
|
log.WithError(err).Fatal("Unable to parse commandline options")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +55,7 @@ func init() {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
if cfg.Config, err = homedir.Expand(cfg.Config); err != nil {
|
if cfg.Config, err = homedir.Expand(cfg.Config); err != nil {
|
||||||
log.WithError(err).Fatal("Unable to expand config path")
|
log.WithError(err).Fatal("Unable to expand config path")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue