fix key lookup

This commit is contained in:
xiaoqidun 2018-10-24 14:56:12 +08:00 committed by GitHub
parent cec5198500
commit 944b2650ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,10 +177,6 @@ func (ini *GoINI) GetString(name string, key string, value string) string {
if 0 == len(name) {
name = ini.commonField
}
if pos := strings.Index(key, "."); pos != -1 {
name = key[:pos]
key = key[pos+1:]
}
if v, ok := ini.dataMap[name]; ok {
if vv, ok := v[key]; ok {
return vv