mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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:
1 parent
73cfbb0259
commit
64c5f033ed
1 file changed
+2
-2
@@ -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);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user