Skip to content

Commit 56137d4

Browse files
committed
style: fix lint
1 parent 848478a commit 56137d4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/aggregate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,9 +1145,9 @@ Aggregate.prototype.finally = function(onFinally) {
11451145
* @api public
11461146
*/
11471147

1148-
Aggregate.prototype[Symbol.asyncIterator] = function() {
1149-
return this.cursor({ useMongooseAggCursor: true }).transformNull()._transformForAsyncIterator();
1150-
};
1148+
Aggregate.prototype[Symbol.asyncIterator] = function() {
1149+
return this.cursor({ useMongooseAggCursor: true }).transformNull()._transformForAsyncIterator();
1150+
};
11511151

11521152
/*!
11531153
* Helpers

lib/query.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5412,11 +5412,11 @@ Query.prototype.nearSphere = function() {
54125412
* @api public
54135413
*/
54145414

5415-
Query.prototype[Symbol.asyncIterator] = function queryAsyncIterator() {
5416-
// Set so QueryCursor knows it should transform results for async iterators into `{ value, done }` syntax
5417-
this._mongooseOptions._asyncIterator = true;
5418-
return this.cursor();
5419-
};
5415+
Query.prototype[Symbol.asyncIterator] = function queryAsyncIterator() {
5416+
// Set so QueryCursor knows it should transform results for async iterators into `{ value, done }` syntax
5417+
this._mongooseOptions._asyncIterator = true;
5418+
return this.cursor();
5419+
};
54205420

54215421
/**
54225422
* Specifies a `$polygon` condition

0 commit comments

Comments
 (0)