diff --git a/pkg/chartutil/coalesce.go b/pkg/chartutil/coalesce.go index c502615a8..1d3d45e99 100644 --- a/pkg/chartutil/coalesce.go +++ b/pkg/chartutil/coalesce.go @@ -176,13 +176,11 @@ func coalesceValues(c *chart.Chart, v map[string]interface{}) { // dest is considered authoritative. func CoalesceTables(dst, src map[string]interface{}) map[string]interface{} { // When --reuse-values is set but there are no modifications yet, return new values - if dst == nil || src == nil { - if src == nil { - return dst - } - if dst == nil { - return src - } + if src == nil { + return dst + } + if dst == nil { + return src } // Because dest has higher precedence than src, dest values override src // values.