Remove excessive logging

Resolves helm unittest issue helm-unittest/helm-unittest#237

Signed-off-by: Sean Mills <sean.m.mills@gmail.com>
pull/12604/head
Sean Mills 7 months ago
parent ff94455e2b
commit ce87ece23e

@ -334,11 +334,9 @@ func trimNilValues(vals map[string]interface{}) map[string]interface{} {
valsCopyMap := valsCopy.(map[string]interface{})
for key, val := range valsCopyMap {
if val == nil {
log.Printf("trim deleting %q", key)
// Iterate over the values and remove nil keys
delete(valsCopyMap, key)
} else if istable(val) {
log.Printf("trim copying %q", key)
// Recursively call into ourselves to remove keys from inner tables
valsCopyMap[key] = trimNilValues(val.(map[string]interface{}))
}

Loading…
Cancel
Save