Skip to content

Commit

Permalink
docs: remove unecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zolamk committed May 30, 2023
1 parent 205d180 commit 66585a7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions engine/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,12 @@ func execStatement(interpreter Interpreter, run PadWorkflowRunBlock, rules map[s
if run.ForEach != nil {
var executedActions []string

// First process the list expression to be iterated
value, err := interpreter.ProcessList(run.ForEach.In)
if err != nil {
return ExitStatusFailure, nil, err
}

for _, val := range value.(*lang.ArrayValue).Vals {
// store the value in the temporary variable
interpreter.StoreTemporaryVariable(run.ForEach.Value, val)

exitStatus, forEachActions, err := execStatementBlock(interpreter, run.ForEach.Do, rules)
Expand Down

0 comments on commit 66585a7

Please sign in to comment.