mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +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.
|
||||
for _, f := range fieldPath {
|
||||
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...))
|
||||
|
||||
Reference in New Issue
Block a user