mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
Enable intrange linter, and fix warnings
This commit is contained in:
@ -139,7 +139,7 @@ func walk(node *yaml.Node, path string, callback func(*yaml.Node, string)) error
|
||||
}
|
||||
}
|
||||
case yaml.SequenceNode:
|
||||
for i := 0; i < len(node.Content); i++ {
|
||||
for i := range len(node.Content) {
|
||||
childPath := fmt.Sprintf("%s[%d]", path, i)
|
||||
err := walk(node.Content[i], childPath, callback)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user