From cdc4a5083b2d597f157e8bc7cc11f858710ddf3b Mon Sep 17 00:00:00 2001 From: koba1t Date: Tue, 12 Apr 2022 12:53:58 +0900 Subject: [PATCH] fix lint error --- kyaml/yaml/fns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kyaml/yaml/fns.go b/kyaml/yaml/fns.go index fe72d13ce..7ef1a54ed 100644 --- a/kyaml/yaml/fns.go +++ b/kyaml/yaml/fns.go @@ -542,8 +542,8 @@ func (l PathGetter) getFilter(part, nextPart string, fieldPath *[]string) (Filte // part is a hyphen return GetElementByIndex(-1), nil case part == "*": - // part is a hyphen - return nil, fmt.Errorf("cannot support create option in a multi-value target now") + // part is a asterisk + return nil, errors.Errorf("cannot support create option in a multi-value target now") case IsListIndex(part): // part is surrounded by brackets return l.elemFilter(part)