Fix noRef check

This commit is contained in:
Denis Arh
2021-03-12 13:12:07 +01:00
parent 4fcc7750a6
commit 66804a22c6
+2 -2
View File
@@ -554,8 +554,8 @@ func verifyStep(s *types.WorkflowStep, in, out types.WorkflowPathSet) types.Work
// reference should not be set on the step
noRef = func() error {
if s.Ref == "" {
return errors.Internal("%s step expects reference", s.Kind)
if s.Ref != "" {
return errors.Internal("%s step does not expects reference", s.Kind)
}
return nil