config: fallover correctly to default config

This commit is contained in:
Jimmy Zelinskie 2016-03-18 16:06:53 -04:00
parent aef5f9dde4
commit 30055af03e

View File

@ -92,7 +92,7 @@ func Load(path string) (config *Config, err error) {
var cfgFile File var cfgFile File
cfgFile.Clair = DefaultConfig() cfgFile.Clair = DefaultConfig()
if path == "" { if path == "" {
return return &cfgFile.Clair, nil
} }
f, err := os.Open(os.ExpandEnv(path)) f, err := os.Open(os.ExpandEnv(path))