Skip to content

Commit

Permalink
config: fallover correctly to default config
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Mar 18, 2016
1 parent aef5f9d commit 30055af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func Load(path string) (config *Config, err error) {
var cfgFile File
cfgFile.Clair = DefaultConfig()
if path == "" {
return
return &cfgFile.Clair, nil
}

f, err := os.Open(os.ExpandEnv(path))
Expand Down

0 comments on commit 30055af

Please sign in to comment.