remove invalid map

This commit is contained in:
Roy Olav Purser 2022-01-15 21:35:37 +01:00
parent 09acd79fe8
commit afa50b4fca
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -302,7 +302,7 @@ func (c *Config) getRawMap(key string, dtype DataType) (empty map[string]cValue)
if ok {
for k, v := range entries {
if v.dtype == dtype {
if (v.dtype == dtype) && (v.parsed.err == nil) {
retval[k] = v.parsed
} else {
return