Skip to content

Commit

Permalink
fix(settings): remove nil pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
bergquist committed Nov 18, 2016
1 parent 61bb9cb commit 5dea0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,12 @@ func loadConfiguration(args *CommandLineArgs) {
configFiles = append(configFiles, defaultConfigFile)

Cfg, err = ini.Load(defaultConfigFile)
Cfg.BlockMode = false

if err != nil {
log.Fatal(3, "Failed to parse defaults.ini, %v", err)
}

Cfg.BlockMode = false

// command line props
commandLineProps := getCommandLineProperties(args.Args)
// load default overrides
Expand Down

0 comments on commit 5dea0fd

Please sign in to comment.