config: fallover correctly to default config
This commit is contained in:
parent
aef5f9dde4
commit
30055af03e
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user