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