From a1416cf2255a01bd25e6efaa515ac24bb95efd86 Mon Sep 17 00:00:00 2001 From: Carlos Lima Date: Sun, 15 Jun 2025 19:18:50 +0800 Subject: [PATCH] review: style changes Signed-off-by: Carlos Lima --- pkg/action/action.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/action/action.go b/pkg/action/action.go index 4c028df5f..d67564688 100644 --- a/pkg/action/action.go +++ b/pkg/action/action.go @@ -241,8 +241,8 @@ func (cfg *Configuration) renderResources(ch *chart.Chart, values chartutil.Valu // them back into a map of filename -> content. // Merge files as stream of documents for sending to post renderer - var merged string - if merged, err = annotateAndMerge(files); err != nil { + merged, err := annotateAndMerge(files) + if err != nil { return hs, b, notes, fmt.Errorf("error merging manifests: %w", err) } @@ -253,7 +253,8 @@ func (cfg *Configuration) renderResources(ch *chart.Chart, values chartutil.Valu } // Use the file list and contents received from the post renderer - if files, err = splitAndDeannotate(postRendered.String()); err != nil { + files, err = splitAndDeannotate(postRendered.String()) + if err != nil { return hs, b, notes, fmt.Errorf("error while parsing post rendered output: %w", err) } }