From 2669a35c077e694f7200065f7f71c795327ce428 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 13 Jan 2017 14:26:41 -0800 Subject: adding stop to LoadCacheConfig if there is no config data --- system/db/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/db/config.go b/system/db/config.go index 6f10e65..1ba71c8 100644 --- a/system/db/config.go +++ b/system/db/config.go @@ -180,7 +180,10 @@ func LoadCacheConfig() error { return err } - fmt.Println(string(c)) + if c == nil { + configCache = make(url.Values) + return nil + } // convert json => map[string]interface{} => url.Values var kv map[string]interface{} -- cgit v1.2.3