Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeJu committed Sep 28, 2022
1 parent 9940ff4 commit 7794e46
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/apis/pipeline/v1/pipelineref_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ func (ref *PipelineRef) Validate(ctx context.Context) (errs *apis.FieldError) {
errs = errs.Also(ValidateParameters(ctx, ref.Params))
errs = errs.Also(validateResolutionParamTypes(ref.Params).ViaField("params"))
}
} else {
if ref.Name == "" {
errs = errs.Also(apis.ErrMissingField("name"))
}
} else if ref.Name == "" {
errs = errs.Also(apis.ErrMissingField("name"))
}
return
}
Expand Down

0 comments on commit 7794e46

Please sign in to comment.