Cleanup: remove redundant if statement

This commit is contained in:
Stefan Haller
2025-05-21 08:51:24 +02:00
parent ffda51014d
commit 48305c18f7
+1 -5
View File
@@ -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.