mirror of https://github.com/perkeep/perkeep.git
jsonconfig: skip over nil values when expanding
Change-Id: I5dfb7b3022da1ec689cf767e5d088c73c5589386
This commit is contained in:
parent
6e7d3e3e1e
commit
c5fd9fb7b9
|
@ -201,11 +201,7 @@ func (c *ConfigParser) evaluateExpressions(m map[string]interface{}, seenKeys []
|
|||
for k, ei := range m {
|
||||
thisPath := append(seenKeys, k)
|
||||
switch subval := ei.(type) {
|
||||
case string:
|
||||
continue
|
||||
case bool:
|
||||
continue
|
||||
case float64:
|
||||
case string, bool, float64, nil:
|
||||
continue
|
||||
case []interface{}:
|
||||
if len(subval) == 0 {
|
||||
|
|
Loading…
Reference in New Issue