mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 08:20:59 +00:00
fix lint error
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user