Skip to content

Commit 17fdfed

Browse files
style: code style
1 parent 304dab0 commit 17fdfed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

kyaml/fn/framework/processors.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,7 @@ func LoadFunctionConfig(src *yaml.RNode, api interface{}) error {
156156

157157
// using sigs.k8s.io/yaml here lets the custom types embed core types
158158
// that only have json tags, notably types from k8s.io/apimachinery/pkg/apis/meta/v1
159-
160-
err := k8syaml.UnmarshalStrict([]byte(src.MustString()), api)
161-
162-
if err != nil {
159+
if err := k8syaml.UnmarshalStrict([]byte(src.MustString()), api); err != nil {
163160
if schemaValidationError != nil {
164161
// if we got a validation error, report it instead as it is likely a nicer version of the same message
165162
return schemaValidationError

0 commit comments

Comments
 (0)