Skip to content

Commit

Permalink
Revert "make include statements trigger async conversion inside if/fo…
Browse files Browse the repository at this point in the history
…r statements (fixes #372)"

This reverts commit 7d4716f.

Using an include is not (in and of itself) a request to turn a for-loop
async. It may be that some version of this fix is needed, but if so it needs to
be more carefully targeted.

Fixes #527; re-opens #372.
  • Loading branch information
carljm committed Feb 16, 2016
1 parent 9c22139 commit 4917f42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ function convertStatements(ast) {
node instanceof nodes.IfAsync ||
node instanceof nodes.AsyncEach ||
node instanceof nodes.AsyncAll ||
node instanceof nodes.CallExtensionAsync ||
node instanceof nodes.Include) {
node instanceof nodes.CallExtensionAsync) {
async = true;
// Stop iterating by returning the node
return node;
Expand Down

0 comments on commit 4917f42

Please sign in to comment.