mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 21:00:48 +00:00
remove unnecessary conversion
Signed-off-by: Penghui Liao <liaoishere@gmail.com>
This commit is contained in:
parent
30bbc81a2e
commit
b8868d6d2d
@ -75,7 +75,7 @@ func TestAssignConfig_02(t *testing.T) {
|
||||
|
||||
jcf := &config.JSONConfig{}
|
||||
bs, _ = json.Marshal(configMap)
|
||||
ac, _ := jcf.ParseData([]byte(bs))
|
||||
ac, _ := jcf.ParseData(bs)
|
||||
|
||||
for _, i := range []interface{}{_BConfig, &_BConfig.Listen, &_BConfig.WebConfig, &_BConfig.Log, &_BConfig.WebConfig.Session} {
|
||||
assignSingleConfig(i, ac)
|
||||
|
Loading…
Reference in New Issue
Block a user