mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-18 02:01:29 +00:00
fix lint error to nolint:goerr113
This commit is contained in:
@@ -123,7 +123,7 @@ func applyToNode(node *yaml.RNode, value *yaml.RNode, target *types.TargetSelect
|
|||||||
// So, if create option is set, we fallback to PathGetter.
|
// So, if create option is set, we fallback to PathGetter.
|
||||||
for _, f := range fieldPath {
|
for _, f := range fieldPath {
|
||||||
if f == "*" {
|
if f == "*" {
|
||||||
return errors.New("cannot support create option in a multi-value target")
|
return errors.New("cannot support create option in a multi-value target") //nolint:goerr113
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
t, err = node.Pipe(yaml.LookupCreate(value.YNode().Kind, fieldPath...))
|
t, err = node.Pipe(yaml.LookupCreate(value.YNode().Kind, fieldPath...))
|
||||||
|
|||||||
Reference in New Issue
Block a user