mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
enable errorlint linter
This commit is contained in:
committed by
Mike Farah
parent
3f4bbf748d
commit
8711042c98
@@ -194,7 +194,7 @@ func traverseArrayWithIndices(candidate *CandidateNode, indices []*yaml.Node, pr
|
||||
continue
|
||||
}
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Cannot index array with '%v' (%v)", indexNode.Value, err)
|
||||
return nil, fmt.Errorf("Cannot index array with '%v' (%w)", indexNode.Value, err)
|
||||
}
|
||||
indexToUse := index
|
||||
contentLength := int64(len(node.Content))
|
||||
|
||||
Reference in New Issue
Block a user