stream: use arrow function for callback
In lib/internal/streams/async_iterator.js, use arrow function for callback. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
46094e42c3
commit
7bc5300e2b
@ -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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user