summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-13 14:26:41 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-13 14:26:41 -0800
commit2669a35c077e694f7200065f7f71c795327ce428 (patch)
treebb8bc5bbc8910a61e2bcd41a3e01917a2db47c42
parentd1eac138737668e102a2663ee19b15443c42c6ec (diff)
adding stop to LoadCacheConfig if there is no config data
-rw-r--r--system/db/config.go5
1 files changed, 4 insertions, 1 deletions
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{}