Skip to content

Commit

Permalink
Fix incorrect error return (kptdev#3969)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbelamaric committed May 18, 2023
1 parent fce1b79 commit 6a63fe2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ func isPackageVariantFunc(fn *fn.SubObject, pvName string) (bool, error) {
return false, fmt.Errorf("could not retrieve field name: %w", err)
}
if !ok {
return false, fmt.Errorf("could not find field name in supplied func")
return false, nil
}

name := strings.Split(origname, ".")
Expand Down

0 comments on commit 6a63fe2

Please sign in to comment.