Skip to content

Commit

Permalink
fix: use for await ... of
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed Jun 15, 2024
1 parent 418d383 commit ae0bdeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const execute = async (
const results: Results = {};
let final = '';
let firstIteration = true;
for (const step of steps.steps) {
for await (const step of steps.steps) {
let data = step.dataFromFile
? readFromFile(step.dataFromFile)
: step.dataFromStep
Expand Down Expand Up @@ -154,3 +154,4 @@ export const execute = async (

return final;
};

0 comments on commit ae0bdeb

Please sign in to comment.