Skip to content

Commit

Permalink
Remove the hardcoded HUB_CONFIG_FILE env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
admd committed Dec 10, 2019
1 parent 5ac67ff commit 06174c2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ type Config struct {

// New returns a new Config struct
func New() *Config {
os.Setenv("HUB_CONFIG_FILE", "/home/marcelo/go/xmlrpc_conf.conf")
if hubConfigFile, exists := os.LookupEnv("HUB_CONFIG_FILE"); exists {
if err := k.Load(file.Provider(hubConfigFile), json.Parser()); err != nil {
log.Fatalf("error loading config: %v", err)
Expand Down

0 comments on commit 06174c2

Please sign in to comment.