Skip to content

Commit

Permalink
Merge pull request #3 from cdifino/foreachbug
Browse files Browse the repository at this point in the history
Fixed side-runner foreach command
  • Loading branch information
cdifino authored Jul 20, 2019
2 parents 44a5552 + be598d5 commit 99a2c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/selianize/src/command.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the Software Freedom Conservancy (SFC) under one
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
Expand Down Expand Up @@ -802,7 +802,7 @@ function emitControlFlowWhile(target) {

function emitControlFlowForEach(collectionVarName, iteratorVarName) {
return Promise.resolve(
`for (let i = 0; i < vars["${collectionVarName}"].length - 1; i++) {vars["${iteratorVarName}"] = vars["${collectionVarName}"][i];`
`for (let i = 0; i < vars["${collectionVarName}"].length; i++) {vars["${iteratorVarName}"] = vars["${collectionVarName}"][i];`
)
}

Expand Down

0 comments on commit 99a2c87

Please sign in to comment.