Skip to content

Commit

Permalink
Merge pull request #3 from patrickpang/patch-1
Browse files Browse the repository at this point in the history
Bugfix.
  • Loading branch information
uhop authored Dec 21, 2020
2 parents ba80083 + 96ef26f commit 90533a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const runAsyncGenerator = async (gen, stream) => {
data = await data;
}
if (data.done) break;
const value = data.value;
let value = data.value;
if (value && typeof value.then == 'function') {
value = await value;
}
Expand Down

0 comments on commit 90533a2

Please sign in to comment.