38188098 by fuxiaohei

fix testing fail

1 parent c372328f
...@@ -151,12 +151,12 @@ func (c *JsonConfigContainer) getData(key string) interface{} { ...@@ -151,12 +151,12 @@ func (c *JsonConfigContainer) getData(key string) interface{} {
151 } 151 }
152 for _, key := range sectionKey[1:] { 152 for _, key := range sectionKey[1:] {
153 if v, ok := curValue.(map[string]interface{}); ok { 153 if v, ok := curValue.(map[string]interface{}); ok {
154 if v2, ok := v[key]; ok { 154 if curValue, ok = v[key]; !ok {
155 return v2 155 return nil
156 } 156 }
157 } 157 }
158 } 158 }
159 return nil 159 return curValue
160 } 160 }
161 if v, ok := c.data[key]; ok { 161 if v, ok := c.data[key]; ok {
162 return v 162 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!