mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
fix error handling
This commit is contained in:
@@ -206,9 +206,12 @@ func GetFunctionSpec(n *yaml.RNode) (*FunctionSpec, error) {
|
||||
if err != nil {
|
||||
return nil, nil
|
||||
}
|
||||
if fn, err := getFunctionSpecFromAnnotation(n, meta); err != nil {
|
||||
|
||||
fn, err := getFunctionSpecFromAnnotation(n, meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
} else if fn != nil {
|
||||
}
|
||||
if fn != nil {
|
||||
return fn, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user