From 1175a8064575da43aa6707de206eba926e438c13 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 7 May 2025 18:11:46 +0200 Subject: [PATCH] Cleanup: remove redundant if statement --- pkg/utils/yaml_utils/yaml_utils.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/utils/yaml_utils/yaml_utils.go b/pkg/utils/yaml_utils/yaml_utils.go index 391ba8a4f..5f2532a3d 100644 --- a/pkg/utils/yaml_utils/yaml_utils.go +++ b/pkg/utils/yaml_utils/yaml_utils.go @@ -73,11 +73,7 @@ func RenameYamlKey(rootNode *yaml.Node, path []string, newKey string) error { body := rootNode.Content[0] - if err := renameYamlKey(body, path, newKey); err != nil { - return err - } - - return nil + return renameYamlKey(body, path, newKey) } // Recursive function to rename the YAML key.