mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-25 22:32:13 +02:00
Cleanup: remove redundant if statement
This commit is contained in:
@@ -73,11 +73,7 @@ func RenameYamlKey(rootNode *yaml.Node, path []string, newKey string) error {
|
|||||||
|
|
||||||
body := rootNode.Content[0]
|
body := rootNode.Content[0]
|
||||||
|
|
||||||
if err := renameYamlKey(body, path, newKey); err != nil {
|
return renameYamlKey(body, path, newKey)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recursive function to rename the YAML key.
|
// Recursive function to rename the YAML key.
|
||||||
|
|||||||
Reference in New Issue
Block a user