From 13eaf7af0b753590b860eeb34a26f2b0a0ff4c3b Mon Sep 17 00:00:00 2001 From: Anubhav_Tyagi <76842675+AnubhavT007@users.noreply.github.com> Date: Wed, 11 Mar 2026 14:05:46 +0530 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Anubhav_Tyagi <76842675+AnubhavT007@users.noreply.github.com> --- pkg/chart/common/util/coalesce.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/chart/common/util/coalesce.go b/pkg/chart/common/util/coalesce.go index b89578f4b..9ecd046f9 100644 --- a/pkg/chart/common/util/coalesce.go +++ b/pkg/chart/common/util/coalesce.go @@ -121,12 +121,10 @@ func coalesceDeps(printf printFn, chrt chart.Charter, dest map[string]any, prefi dvmap := dv.(map[string]any) subPrefix := concatPrefix(prefix, ch.Name()) // Get globals out of dest and merge them into dvmap. - err = coalesceGlobals(printf, dvmap, dest, subPrefix, merge) - if err != nil { + if err := coalesceGlobals(printf, dvmap, dest, subPrefix, merge); err != nil { return dest, err } // Now coalesce the rest of the values. - var err error dest[sub.Name()], err = coalesce(printf, subchart, dvmap, subPrefix, merge) if err != nil { return dest, err