Skip to content

Commit

Permalink
Remove excessive logging
Browse files Browse the repository at this point in the history
Resolves helm unittest issue helm-unittest/helm-unittest#237

Signed-off-by: Sean Mills <sean.m.mills@gmail.com>
  • Loading branch information
Sean Mills committed Nov 30, 2023
1 parent ff94455 commit ce87ece
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/chartutil/dependencies.go
Expand Up @@ -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{}))
}
Expand Down

0 comments on commit ce87ece

Please sign in to comment.