fix lint error to nolint:goerr113

This commit is contained in:
koba1t
2022-04-13 12:43:35 +09:00
parent ed72bb02d4
commit 2f2e14e953

View File

@@ -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...))