Skip to content

Commit 63df02f

Browse files
authored
Merge pull request #70 from neuroglia-io/fix-exit-flow-directive-validation
Fixed task `exit` flow directive validation
2 parents 75b7a4a + a77656c commit 63df02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServerlessWorkflow.Sdk/Validation/TaskDefinitionValidator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected virtual bool NotAFlowDirective(TaskDefinition task)
102102
{
103103
return task.Then switch
104104
{
105-
null or "" or FlowDirective.Continue or FlowDirective.End or FlowDirective.End => false,
105+
null or "" or FlowDirective.Continue or FlowDirective.End or FlowDirective.Exit => false,
106106
_ => true
107107
};
108108
}

0 commit comments

Comments
 (0)