From 30055af03e357b44cfbacb3088eab337a94e51e8 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Fri, 18 Mar 2016 16:06:53 -0400 Subject: [PATCH] config: fallover correctly to default config --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 5004822f..9a1bac71 100644 --- a/config/config.go +++ b/config/config.go @@ -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))