From c5fd9fb7b955b3f1215634911d2421c272a5e92a Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 8 Aug 2014 06:47:10 -0700 Subject: [PATCH] jsonconfig: skip over nil values when expanding Change-Id: I5dfb7b3022da1ec689cf767e5d088c73c5589386 --- pkg/jsonconfig/eval.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/jsonconfig/eval.go b/pkg/jsonconfig/eval.go index 7eac26b94..0020821a4 100644 --- a/pkg/jsonconfig/eval.go +++ b/pkg/jsonconfig/eval.go @@ -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 {