mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 21:31:02 +00:00
Fixed #1735 Return empty []string
Need return empty []string if config value is empty. split `“”` ==> []string{}, Not []string{“”}
This commit is contained in:
@ -79,4 +79,8 @@ func TestYaml(t *testing.T) {
|
||||
if yamlconf.String("name") != "astaxie" {
|
||||
t.Fatal("get name error")
|
||||
}
|
||||
|
||||
if len(yamlconf.Strings("emptystrings")) != 0 {
|
||||
t.Fatal("get emtpy strings error")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user