This repository was archived by the owner on May 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ class DataService extends EventEmitter {
178178 * and options.
179179 *
180180 * @param {string } ns - The namespace to search on.
181+ * @param {object } filter - The filter for the count.
181182 * @param {object } options - The query options.
182183 * @param {function } callback - The callback function.
183184 */
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ class NativeClient extends EventEmitter {
108108 this . isMongos = false ;
109109
110110 const [
111- _client , // The client is set in the `setupListeners` method.
111+ // eslint-disable-next-line no-unused-vars
112+ _ , // The client is set in the `setupListeners` method.
112113 connectionOptions
113114 ] = await connect (
114115 this . model ,
@@ -298,7 +299,8 @@ class NativeClient extends EventEmitter {
298299 */
299300 collections ( databaseName , callback ) {
300301 if ( databaseName === SYSTEM ) {
301- return callback ( null , [ ] ) ;
302+ callback ( null , [ ] ) ;
303+ return ;
302304 }
303305 this . collectionNames ( databaseName , ( error , names ) => {
304306 if ( error ) {
@@ -518,6 +520,7 @@ class NativeClient extends EventEmitter {
518520
519521 /**
520522 * Disconnect the client.
523+ * @param {Function } callback - Callback called after connection closed.
521524 */
522525 disconnect ( callback ) {
523526 this . client . close ( true , callback ) ;
You can’t perform that action at this time.
0 commit comments