mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 16:11:02 +00:00
Return nil not empty []string{}
Return nil if config value does not exist or is empty
This commit is contained in:
@ -82,7 +82,7 @@ func TestXML(t *testing.T) {
|
||||
if xmlconf.String("name") != "astaxie" {
|
||||
t.Fatal("get name error")
|
||||
}
|
||||
if len(xmlconf.Strings("emptystrings")) != 0 {
|
||||
if xmlconf.Strings("emptystrings") != nil {
|
||||
t.Fatal("get emtpy strings error")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user