mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
Cleanup: remove redundant if statement
This commit is contained in:
parent
2735944c4e
commit
1175a80645
1 changed files with 1 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue