diff --git a/doc/conf.go b/doc/conf.go index 610da82d9..590afafd6 100644 --- a/doc/conf.go +++ b/doc/conf.go @@ -59,7 +59,7 @@ func init() { } } Cfg, err = goconfig.LoadConfigFile(cfgPath) - if _, err = os.Create(cfgPath); err != nil { + if err != nil { log.Error("", "Fail to load gopm config file") log.Fatal("", err.Error()) }