Skip to content

Commit

Permalink
Merge pull request #42 from digineo/master
Browse files Browse the repository at this point in the history
Fix defaults when using config file
  • Loading branch information
czerwonk authored Mar 19, 2021
2 parents b373dca + 2060b1d commit f0600b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func loadConfig() (*config.Config, error) {
defer f.Close()

cfg, err := config.FromYAML(f)
if err != nil {
if err == nil {
addFlagToConfig(cfg)
}
return cfg, err
Expand Down

0 comments on commit f0600b0

Please sign in to comment.