Commit 38188098 authored by fuxiaohei's avatar fuxiaohei

fix testing fail

parent c372328f
...@@ -151,12 +151,12 @@ func (c *JsonConfigContainer) getData(key string) interface{} { ...@@ -151,12 +151,12 @@ func (c *JsonConfigContainer) getData(key string) interface{} {
} }
for _, key := range sectionKey[1:] { for _, key := range sectionKey[1:] {
if v, ok := curValue.(map[string]interface{}); ok { if v, ok := curValue.(map[string]interface{}); ok {
if v2, ok := v[key]; ok { if curValue, ok = v[key]; !ok {
return v2 return nil
} }
} }
} }
return nil return curValue
} }
if v, ok := c.data[key]; ok { if v, ok := c.data[key]; ok {
return v return v
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment