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 <anna@addaleax.net>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
DoiChris authored and BethGriggs committed Feb 12, 2019
1 parent ec7bd18 commit e338e50
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 e338e50

Please sign in to comment.