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>
pull/31841/head
Anubhav_Tyagi 3 months ago committed by GitHub
parent f6c70a2cf6
commit 13eaf7af0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save