Skip to content

Commit

Permalink
fix lint error to nolint:goerr113
Browse files Browse the repository at this point in the history
  • Loading branch information
koba1t committed Apr 13, 2022
1 parent ed72bb0 commit 2f2e14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/filters/replacement/replacement.go
Expand Up @@ -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...))
Expand Down

0 comments on commit 2f2e14e

Please sign in to comment.