mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +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
|
// part is a hyphen
|
||||||
return GetElementByIndex(-1), nil
|
return GetElementByIndex(-1), nil
|
||||||
case part == "*":
|
case part == "*":
|
||||||
// part is a hyphen
|
// part is a asterisk
|
||||||
return nil, fmt.Errorf("cannot support create option in a multi-value target now")
|
return nil, errors.Errorf("cannot support create option in a multi-value target now")
|
||||||
case IsListIndex(part):
|
case IsListIndex(part):
|
||||||
// part is surrounded by brackets
|
// part is surrounded by brackets
|
||||||
return l.elemFilter(part)
|
return l.elemFilter(part)
|
||||||
|
|||||||
Reference in New Issue
Block a user