Skip to content

Commit 627104e

Browse files
committed
Remove redundant await
1 parent b93bf85 commit 627104e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/async-iterator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class TakeIterator extends AsyncIterator {
308308
async next() {
309309
this.iterated++;
310310
if (this.iterated <= this.amount) {
311-
return await this.base.next();
311+
return this.base.next();
312312
}
313313
return { done: true, value: undefined };
314314
}
@@ -411,7 +411,7 @@ class ThrottleIterator extends AsyncIterator {
411411
async next() {
412412
if (this.iterMax > this.count) {
413413
this.count++;
414-
return await this.base.next();
414+
return this.base.next();
415415
}
416416

417417
this.sum += Date.now() - this.begin;
@@ -427,7 +427,7 @@ class ThrottleIterator extends AsyncIterator {
427427

428428
this.count++;
429429
this.begin = Date.now();
430-
return await this.base.next();
430+
return this.base.next();
431431
}
432432
}
433433

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy