Skip to content

Commit

Permalink
Rolled back most isLoop() uses
Browse files Browse the repository at this point in the history
  • Loading branch information
frikky committed Aug 20, 2024
1 parent 2065ab6 commit fca85d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -13836,7 +13836,7 @@ func updateExecutionParent(ctx context.Context, executionParent, returnValue, pa
foundResult.Action = action

for _, param := range action.Parameters {
if param.Name == "argument" && isLoop(param.Value) {
if param.Name == "argument" && strings.Contains(param.Value, "$") && strings.Contains(param.Value, ".#") {
isLooping = true
}

Expand Down Expand Up @@ -18274,7 +18274,7 @@ func RunFixParentWorkflowResult(ctx context.Context, execution WorkflowExecution
setExecution = false
}

if param.Name == "argument" && isLoop(param.Value) {
if param.Name == "argument" && strings.Contains(param.Value, "$") && strings.Contains(param.Value, ".#") {
isLooping = true
}

Expand Down Expand Up @@ -19559,7 +19559,7 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h
//$Get_Offenses.# -> Allow to run more
for _, param := range trigger.Parameters {
if param.Name == "argument" {
if isLoop(param.Value) {
if strings.Contains(param.Value, "$") && strings.Contains(param.Value, ".#") {
allowContinuation = true
break
}
Expand All @@ -19583,7 +19583,7 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h
//$Get_Offenses.# -> Allow to run more
for _, param := range action.Parameters {
if param.Name == "argument" {
if isLoop(param.Value) {
if strings.Contains(param.Value, "$") && strings.Contains(param.Value, ".#") {
allowContinuation = true
break
}
Expand Down

0 comments on commit fca85d9

Please sign in to comment.