Skip to content

Commit

Permalink
stream: use arrow function for callback
Browse files Browse the repository at this point in the history
In lib/internal/streams/async_iterator.js, use arrow function for
callback.

PR-URL: #24609
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ron Korving <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
DoiChris authored and targos committed Nov 28, 2018
1 parent 3b99191 commit 99b018b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/streams/async_iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function onReadable(iter) {
}

function wrapForNext(lastPromise, iter) {
return function(resolve, reject) {
lastPromise.then(function() {
return (resolve, reject) => {
lastPromise.then(() => {
iter[kHandlePromise](resolve, reject);
}, reject);
};
Expand Down

0 comments on commit 99b018b

Please sign in to comment.