jsonconfig: skip over nil values when expanding

Change-Id: I5dfb7b3022da1ec689cf767e5d088c73c5589386
This commit is contained in:
Brad Fitzpatrick 2014-08-08 06:47:10 -07:00
parent 6e7d3e3e1e
commit c5fd9fb7b9
1 changed files with 1 additions and 5 deletions

View File

@ -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 {