Skip to content

Commit

Permalink
mapAsyncIterator: Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 6, 2021
1 parent 63c787f commit 5ddcb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subscription/mapAsyncIterator.js
Expand Up @@ -37,7 +37,7 @@ export function mapAsyncIterator<T, U>(
async next() {
return mapResult(await iterator.next());
},
async return(): Promise<IteratorResult<U, void>> {
async return(): Promise<IteratorResult<U, void>> {
return typeof iterator.return === 'function'
? mapResult(await iterator.return())
: { value: undefined, done: true };
Expand Down

0 comments on commit 5ddcb79

Please sign in to comment.