diff --git a/pkg/devfile/validate/validate.go b/pkg/devfile/validate/validate.go index c3ac1e03..c4286607 100644 --- a/pkg/devfile/validate/validate.go +++ b/pkg/devfile/validate/validate.go @@ -70,7 +70,7 @@ func ValidateDevfileData(data devfileData.DevfileData) error { if len(errstrings) > 0 { return fmt.Errorf(strings.Join(errstrings, "\n")) - } else { - return nil } + + return nil }