38188098 by fuxiaohei

fix testing fail

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