From 2f03d01b7d29d65374838a8376644e2b12066c81 Mon Sep 17 00:00:00 2001 From: Sean Mills Date: Wed, 29 Nov 2023 20:26:14 -0600 Subject: [PATCH] Remove excessive logging Resolves helm unittest issue helm-unittest/helm-unittest#237 Signed-off-by: Sean Mills (cherry picked from commit ce87ece23e2b86b15e9db48b0f9f811a74511c9a) --- pkg/chartutil/dependencies.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/chartutil/dependencies.go b/pkg/chartutil/dependencies.go index a87f0fbe8..8dbb5ef11 100644 --- a/pkg/chartutil/dependencies.go +++ b/pkg/chartutil/dependencies.go @@ -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{})) }